Function at 0x49afc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, ecx
mov dword [esp + 8], edx
mov ecx, dword [eax]
mov edx, dword [esi]
mov dword [eax], 0
mov dword [esi], 0
cmp dword [edi + 0x18], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], edx
je 0x49affc
mov eax, dword [edi + 0x1c]
pop edi
pop esi
add esp, 0x2c
ret 0x18
cmp dword [edi + 0xc], 0
lea eax, [edi + 0x20]
push ebx
push ebp
mov dword [esp + 0x38], eax
mov dword [eax], 2
je 0x49b0f1
mov ebx, dword [esp + 0x50]
push eax
push dword [esp + 0x58]
lea eax, [esp + 0x54]
mov dword [esp + 0x54], edx
push ebx
push eax
push dword [esp + 0x58]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0x78]
xor edx, edx
push eax
mov eax, dword [edi + 0x88]
call eax
mov edx, dword [edi + 0x20]
mov ebp, eax
mov ecx, dword [esp + 0x4c]
mov dword [edi + 0x1c], ebp
mov dword [esi], ecx
mov eax, dword [edi + 0x14]
mov esi, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x54], edx
mov dword [edi + 0x14], eax
test ebp, ebp
jne 0x49b071
test ebx, ebx
jne 0x49b071
cmp edx, 1
jne 0x49b078
mov dword [edi + 0x18], 1
mov ecx, dword [edi + 8]
cmp ecx, 1
jne 0x49b092
mov eax, dword [esp + 0x40]
mov dword [eax], esi
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x2c
ret 0x18
cmp dword [edi + 0x18], 0
je 0x49b0e5
mov ebx, 1
cmp ecx, ebx
jbe 0x49b0df
mov ebp, dword [esp + 0x44]
lea esi, [edi + 0x90]
nop dword [eax + eax]
mov edx, dword [edi + 0xc]
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 0x14]
call eax
cmp dword [esp + 0x54], 1
je 0x49b0cf
test ebp, ebp
je 0x49b0d2
mov ecx, dword [esp + 0x18]
cmp dword [edi + 0x14], ecx
jne 0x49b0d2
mov eax, dword [edi + 0x14]
inc ebx
add esi, 0x18
cmp ebx, dword [edi + 8]
jb 0x49b0b0
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x2c
ret 0x18
mov edx, dword [edi + 8]
cmp edx, 1
je 0x49b132
cmp dword [edi + 4], 0
jne 0x49b125
mov eax, dword [edi]
mov edx, 0x60000
mov ecx, eax
mov eax, dword [eax]
call eax
mov dword [edi + 4], eax
test eax, eax
jne 0x49b122
pop ebp
pop ebx
pop edi
mov eax, 2
pop esi
add esp, 0x2c
ret 0x18
lea eax, [edi + 0x20]
mov edx, dword [edi + 8]
mov dword [esp + 0x1c], 0
jmp 0x49b13a
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x48], ecx
xor ebx, ebx
mov dword [esp + 0x54], 0
xor esi, esi
mov dword [esp + 0x24], 1
mov dword [eax], 2
test edx, edx
je 0x49b225
mov dword [esp + 0x2c], ebx
lea eax, [esi + 5]
lea eax, [eax + eax*2]
lea eax, [edi + eax*8]
mov dword [esp + 0x30], eax
test esi, esi
jne 0x49b18f
mov eax, dword [esp + 0x50]
mov ebp, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
sub ecx, dword [eax]
jmp 0x49b1b2
mov eax, dword [edi + esi*4 + 0x2c]
lea ebp, [esi - 1]
mov ecx, dword [edi + esi*4 + 0x38]
shl ebp, 0x11
add ebp, dword [edi + 4]
mov dword [esp + 0x44], eax
add ebp, eax
mov eax, dword [edi + esi*4 + 0x20]
sub ecx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
lea eax, [edx - 1]
mov dword [esp + 0x44], ecx
cmp esi, eax
jne 0x49b1cd
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, dword [ecx]
jmp 0x49b1e4
mov eax, dword [edi + esi*4 + 0x30]
cmp eax, dword [edi + esi*4 + 0x3c]
jne 0x49b1fb
mov edx, esi
mov eax, 0x20000
shl edx, 0x11
add edx, dword [edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edi + esi*4 + 0x68]
test eax, eax
je 0x49b237
mov ebx, eax
mov eax, dword [esp + 0x2c]
test eax, eax
cmovne ebx, eax
mov ebp, dword [esp + 0x54]
mov edx, dword [edi + 8]
inc esi
mov ecx, dword [esp + 0x48]
cmp esi, edx
jb 0x49b164
lea eax, [edi + 0x20]
test ebp, ebp
jne 0x49b142
cmp dword [esp + 0x24], 0
je 0x49b22b
mov eax, dword [esp + 0x38]
mov dword [eax], 1
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x2c
ret 0x18
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x4c]
push dword [esp + 0x28]
push eax
push ebp
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x49b269
test ebx, ebx
mov dword [edi + esi*4 + 0x68], ecx
cmove ebx, ecx
mov eax, dword [esp + 0x34]
xor edx, edx
cmp eax, 1
sete dl
je 0x49b28c
cmp dword [edi + 8], 1
mov dword [esp + 0x24], 0
jne 0x49b28c
test ecx, ecx
jne 0x49b28c
mov dword [edi + 0x20], eax
mov ecx, dword [esp + 0x44]
test esi, esi
jne 0x49b2a0
mov eax, dword [esp + 0x4c]
add dword [eax], ecx
add dword [esp + 0x48], ecx
jmp 0x49b2a4
add dword [edi + esi*4 + 0x2c], ecx
mov eax, dword [edi + 8]
dec eax
cmp esi, eax
mov eax, dword [esp + 0x14]
jne 0x49b2bc
mov edx, dword [esp + 0x40]
add dword [edx], eax
add dword [esp + 0x10], eax
jmp 0x49b2cc
mov dword [edi + esi*4 + 0x3c], eax
mov dword [edi + esi*4 + 0x30], 0
mov dword [edi + esi*4 + 0x24], edx
test eax, eax
jne 0x49b2d8
test ecx, ecx
je 0x49b1fb
mov ebp, 1
mov dword [esp + 0x54], ebp
jmp 0x49b1ff