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

Disassembly:
sub esp, 0x38
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [esp + 0x18], edi
test edi, edi
je 0x49cda8
call fcn.0049d1f0
lea ecx, [esi + 0x800]
call fcn.004955c0
mov edi, eax
mov dword [esp + 0x18], eax
mov edx, dword [esi + 0x74]
lea ebx, [esi + 0x1c]
test edx, edx
je 0x49cdbd
mov eax, dword [esi + 0x78]
mov dword [esp + 0x20], ebx
cmp eax, dword [ebx]
je 0x49cded
mov eax, dword [esi + 0x14]
mov ecx, eax
mov dword [esp + 0x20], ebx
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x14]
mov ecx, eax
mov edx, dword [ebx]
mov dword [esi + 0x78], 0
mov eax, dword [eax]
call eax
mov dword [esi + 0x74], eax
test eax, eax
je 0x49d0ab
mov eax, dword [ebx]
mov dword [esi + 0x78], eax
mov edx, dword [esi + 0x7c]
lea ebx, [esi + 0x80]
test edx, edx
je 0x49ce05
mov eax, dword [ebx]
mov dword [esp + 0x1c], ebx
cmp eax, dword [esi + 0x18]
je 0x49ce35
mov eax, dword [esi + 0x14]
mov ecx, eax
mov dword [esp + 0x1c], ebx
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x14]
mov ecx, eax
mov edx, dword [esi + 0x18]
mov dword [ebx], 0
mov eax, dword [eax]
call eax
mov dword [esi + 0x7c], eax
test eax, eax
je 0x49d0ab
mov eax, dword [esi + 0x18]
mov dword [ebx], eax
mov dword [esi + 0x378], 0
xor ecx, ecx
mov dword [esi + 0x380], 0
xor ebx, ebx
mov dword [esi + 0x384], 0
mov eax, dword [esi + 0x58]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x54]
push ebp
mov dword [esp + 0x40], eax
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
cmp ebx, ecx
jne 0x49cf04
test edi, edi
je 0x49cebb
lea ecx, [esi + 0x800]
lea edx, [esp + 0x14]
call fcn.00495730
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebx
test eax, eax
je 0x49ceb1
mov ecx, dword [esp + 0x14]
jmp 0x49ce82
xor ecx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x68], 0
jne 0x49cf04
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
mov ecx, dword [esi + 0x7c]
xor ebx, ebx
push edx
mov dword [esp + 0x1c], ecx
mov edx, ecx
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x34]
mov ecx, eax
mov dword [esp + 0x14], ebx
mov eax, dword [eax]
call eax
mov ecx, dword [esp + 0x14]
add dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
adc dword [esi + 0x64], ebx
test ecx, ecx
je 0x49cefd
test eax, eax
je 0x49cf04
mov dword [esi + 0x68], 1
mov eax, dword [esp + 0x24]
xor edx, edx
mov edi, dword [eax]
sub edi, ebp
cmp dword [esi + 0x44], edx
je 0x49cf3a
mov ebx, dword [esi + 0x48]
sub ebx, dword [esi + 0x50]
mov eax, dword [esi + 0x4c]
sbb eax, dword [esi + 0x54]
cmp edx, eax
jb 0x49cf36
ja 0x49cf29
cmp edi, ebx
jb 0x49cf36
cmp dword [esi + 0x40], edx
mov eax, 1
mov edi, ebx
cmovne edx, eax
mov ebx, dword [esp + 0x10]
mov eax, ecx
mov dword [esp + 0x30], edi
sub eax, ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x44]
push eax
xor eax, eax
cmp ebx, ecx
push edx
mov edx, dword [esi + 0x74]
lea ecx, [esi + 0x88]
sete al
add edx, ebp
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x28]
add eax, ebx
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0049d400
mov ecx, dword [esp + 0x44]
mov ebx, eax
mov edx, dword [esp + 0x30]
add ebp, edx
mov dword [esi + 0x7b0], ecx
mov ecx, dword [esp + 0x28]
add dword [esp + 0x10], ecx
add dword [esi + 0x58], ecx
mov dword [esi + 0x7b4], ebx
adc dword [esi + 0x5c], 0
add dword [esi + 0x50], edx
adc dword [esi + 0x54], 0
test ecx, ecx
jne 0x49cfab
test edx, edx
je 0x49cfb9
test ebx, ebx
jne 0x49cfb9
mov dword [esp + 0x30], ebx
cmp edx, edi
jb 0x49cfdc
jmp 0x49cfc1
mov dword [esp + 0x30], 1
test ebp, ebp
je 0x49cfdc
mov eax, dword [esi + 0x38]
mov ecx, eax
mov edx, dword [esi + 0x74]
push ebp
mov eax, dword [eax]
call eax
cmp eax, ebp
jne 0x49d06b
xor ebp, ebp
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x49d053
test ebx, ebx
jne 0x49d053
mov ebx, dword [esi + 0x58]
mov ecx, ebx
sub ecx, dword [esp + 0x34]
mov edi, dword [esi + 0x5c]
mov eax, edi
sbb eax, dword [esp + 0x38]
test eax, eax
ja 0x49d023
jb 0x49d007
cmp ecx, 0x400000
jae 0x49d023
mov ecx, dword [esi + 0x50]
sub ecx, dword [esp + 0x3c]
mov eax, dword [esi + 0x54]
sbb eax, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
jne 0x49d023
cmp ecx, 0x400000
jb 0x49d053
push dword [esi + 0x54]
mov eax, dword [edx]
mov ecx, edx
push dword [esi + 0x50]
push edi
push ebx
call eax
mov ecx, eax
test ecx, ecx
jne 0x49d085
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x50]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x5c]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], eax
cmp dword [esp + 0x30], 0
jne 0x49d09f
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
jmp 0x49ce82
mov eax, dword [esp + 0x4c]
pop ebp
pop edi
pop esi
mov dword [eax + 0x38], 9
mov eax, 9
pop ebx
add esp, 0x38
ret 4
mov eax, dword [esp + 0x4c]
pop ebp
pop edi
pop esi
mov dword [eax + 0x38], 0xa
mov dword [eax + 0x30], ecx
mov eax, ecx
pop ebx
add esp, 0x38
ret 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret 4
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 0x38
ret 4