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

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, ecx
xor ecx, ecx
lea eax, [ebp + 0xa8]
push esi
lea ebx, [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov esi, dword [ebx + 0x7c]
push edi
mov edi, dword [ebx + 0x78]
mov dword [esp + 0x10], edx
mov edx, edi
and edx, esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ecx
cmp edx, 0xffffffff
je 0x49c5bd
mov edx, dword [ebx + 0x90]
and edx, dword [ebx + 0x94]
cmp edx, 0xffffffff
je 0x49c5bd
mov ecx, dword [ebx + 0x94]
mov eax, dword [ebx + 0x90]
push esi
push edi
push ecx
push eax
call fcn.0049fce0
push edx
push eax
push esi
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
call fcn.0049fe10
cmp eax, dword [ebx + 0x90]
jne 0x49c44f
cmp edx, dword [ebx + 0x94]
je 0x49c459
add dword [esp + 0x2c], 1
adc dword [esp + 0x30], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp]
push ecx
mov edx, edi
mov ecx, esi
shrd edx, ecx, 0xa
shr ecx, 0xa
add edx, edi
adc ecx, esi
add edx, 0x450
adc ecx, 0
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x3c]
push esi
push edi
push edx
push ecx
call fcn.0049b2d0
xor edi, edi
cmp eax, edi
jne 0x49c63b
movzx eax, word [ebx + 0x70]
mov edx, dword [0x4b44b0]
mov cx, word [0x4b44b4]
mov dword [esp + 0x34], edx
mov edx, eax
shr edx, 8
mov word [esp + 0x38], cx
mov byte [esp + 0x3a], dl
lea edx, [edi + 2]
lea ecx, [esp + 0x3a]
mov byte [esp + 0x3b], al
call fcn.0049e1a0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
push 0xc
lea edx, [esp + 0x38]
call eax
sub eax, 0xc
neg eax
sbb eax, eax
and eax, 9
jne 0x49c63b
mov eax, 1
cmp dword [ebx + 0x80], eax
jle 0x49c654
cmp dword [ebp + 0xef4], edi
jne 0x49c515
lea ecx, [ebp + 0xef8]
mov dword [ebp + 0xef4], eax
call fcn.00492b70
mov ecx, dword [ebx + 0x70]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 4]
mov dword [ebp + 0xeec], ecx
mov ecx, 0x26
mov esi, ebx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x78]
mov dword [ebp + 0xef0], edx
mov edx, dword [esp + 0x74]
mov dword [ebp + 0xf18], eax
mov dword [ebp + 0xf08], edx
xor edx, edx
lea eax, [esp + 0x2c]
mov dword [ebp + 0xf14], ecx
mov dword [ebp + 0xf0c], edx
mov dword [ebp + 0xf10], edx
mov dword [ebp + 0xf1c], eax
mov dword [ebp + 0xf20], ebp
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x7c]
mov esi, eax
and esi, ecx
mov dword [esp + 0x2c], 0x49c220
mov dword [esp + 0x30], 0x49c330
cmp esi, 0xffffffff
je 0x49c645
or eax, ecx
je 0x49c645
mov eax, dword [ebx + 0x78]
mov dword [ebp + 0xef8], eax
xor ecx, ecx
cmp eax, dword [ebx + 0x78]
jne 0x49c5ae
cmp ecx, dword [ebx + 0x7c]
je 0x49c5c9
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x60
ret 8
xor edi, edi
mov esi, 0x40000000
jmp 0x49c45d
mov ecx, eax
shr ecx, 0xa
lea ecx, [ecx + eax + 0x450]
mov dword [esp + 0x78], ecx
cmp ecx, eax
jb 0x49c5ae
cmp dword [ebp + 0xdb8], ecx
je 0x49c5f0
mov edi, ebp
call fcn.0049c010
mov ecx, dword [esp + 0x78]
mov eax, dword [ebp + 0xa0]
mov dword [ebp + 0xdb8], ecx
mov edx, dword [ebx + 0x84]
mov ecx, dword [ebp + 0xa4]
mov dword [ebp + 0xf04], ecx
lea ecx, [ebp + 0xef8]
mov dword [ebp + 0xefc], edx
mov dword [ebp + 0xf00], eax
call fcn.00492cf0
test eax, eax
jne 0x49c63b
movzx eax, word [ebx + 0x70]
mov edi, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
call fcn.0049b400
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x60
ret 8
mov esi, dword [esp + 0x78]
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x78], edi
mov edi, dword [ebx + 0x78]
mov edx, edi
and edx, eax
mov dword [esp + 0x40], 0x49bf80
mov dword [esp + 0x44], esi
cmp edx, 0xffffffff
je 0x49c745
xor ecx, ecx
cmp dword [ebx + 0x8c], ecx
setg cl
mov dword [esp + 0x78], ecx
test ecx, ecx
je 0x49c745
mov ecx, edi
xor edx, edx
cmp ecx, ecx
jne 0x49c5ae
cmp edx, eax
jne 0x49c5ae
mov edx, ecx
shr edx, 0xa
lea ecx, [ecx + edx + 0x50]
xor edx, edx
mov dword [esp + 0x18], ecx
cmp edx, eax
ja 0x49c6df
jb 0x49c5ae
cmp ecx, edi
jb 0x49c5ae
lea eax, [ecx + 0x400]
cmp dword [ebp + 0xdbc], edx
je 0x49c6f5
cmp eax, dword [ebp + 0xdb8]
je 0x49c732
mov edi, ebp
call fcn.0049c010
mov edi, dword [esp + 0x18]
mov ecx, dword [ebp]
mov eax, dword [ecx]
add edi, 0x400
mov edx, edi
call eax
mov dword [ebp + 0xdbc], eax
test eax, eax
jne 0x49c728
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x60
ret 8
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0xdb8], edi
mov eax, dword [ebp + 0xdbc]
add eax, 0x400
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x78]
neg esi
sbb esi, esi
lea ecx, [esp + 0x40]
and esi, ecx
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], eax
jmp 0x49c770
cmp dword [esp + 0x78], 0
mov dword [esp + 0x68], 0
je 0x49c787
mov ecx, dword [ebp + 0xdbc]
jmp 0x49c789
xor ecx, ecx
mov edx, dword [ebp + 4]
push edx
mov edx, dword [ebp]
push edx
lea edx, [esp + 0x60]
push edx
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x88]
push ebx
push 0
push 0
push edx
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push edx
push ecx
push eax
lea eax, [ebp + 0xb8]
push eax
call fcn.0049bb50
test eax, eax
jne 0x49c63b
mov eax, dword [esp + 0x60]
mov esi, eax
neg esi
and esi, 3
xor edi, edi
add esi, eax
adc edi, dword [esp + 0x64]
cmp dword [esp + 0x78], 0
mov dword [esp + 0x38], edi
je 0x49c835
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x68]
mov edx, dword [ebp + 0xdbc]
mov eax, dword [ecx]
push ebx
call eax
sub eax, ebx
neg eax
sbb eax, eax
and eax, 9
jne 0x49c63b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edi, esi
sub edi, ebx
push edi
call eax
sub eax, edi
neg eax
sbb eax, eax
and eax, 9
jne 0x49c63b
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov ebx, dword [ebp]
push ecx
push eax
mov eax, dword [esp + 0x60]
push edx
push eax
mov eax, dword [esp + 0x24]
call fcn.0049b370
test eax, eax
jne 0x49c63b
mov ecx, dword [esp + 0x58]
add dword [esp + 0x48], ecx
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x20]
adc dword [esp + 0x4c], edx
add dword [esp + 0x50], esi
adc dword [esp + 0x54], edi
cmp dword [esp + 0x28], eax
jne 0x49c629
mov eax, dword [esp + 0x2c]
jmp 0x49c770