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

Disassembly:
mov ecx, dword [0x5915c4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x44]
cmp eax, dword [ecx + 8]
jbe 0x478e88
sub esp, 0xc4
mov eax, dword [esp + 0xd0]
test eax, eax
sete dl
mov ebx, dword [esp + 0xcc]
test ebx, ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ebp, edx
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x478e53
mov ecx, dword [esp + 0xd4]
test ecx, ecx
jg 0x4786b3
bsf edx, ebx
jne 0x4785ff
mov edx, 0x20
bsf ebp, eax
jne 0x478609
mov ebp, 0x20
mov esi, ecx
xchg esi, ebx
neg ebx
xchg esi, ebx
cmp ebx, 1
sbb edi, edi
xor edi, 0xffffffff
xchg edi, ebx
not ebx
xchg edi, ebx
and edi, ebp
add edx, edi
cmp esi, edx
jg 0x4786b3
mov edx, dword [esp + 0xc8]
mov dword [esp], edx
mov edx, ecx
mov ecx, esi
mov ebp, eax
shr eax, cl
shr ebx, cl
mov dword [esp + 0xc0], ebx
lea edi, [ecx - 0x20]
xchg edi, ebx
neg ebx
xchg edi, ebx
mov ecx, edi
shl ebp, cl
add edx, 0x20
neg edx
mov ecx, edx
mov ebx, dword [esp + 0xd0]
shr ebx, cl
cmp ecx, 0x20
sbb edx, edx
and ebx, edx
cmp edi, 0x20
sbb edx, edx
and ebp, edx
cmp esi, 0x20
sbb edx, edx
and eax, edx
mov esi, dword [esp + 0xc0]
and esi, edx
or esi, ebp
or esi, ebx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], 1
mov byte [esp + 0x1d], 0
call fcn.00479010
add esp, 0xc4
ret
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xc], eax
call fcn.00478f00
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x478e1b
mov dword [esp + 0x60], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
neg eax
mov dword [esp], eax
call fcn.00478ea0
mov eax, dword [esp + 4]
mov dword [esp + 0xbc], eax
lea ecx, [eax + 1]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0xd8]
lea ebx, [0x54a2e0]
cmp edx, ebx
jne 0x4787d5
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00479430
mov eax, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
movzx ecx, byte [esp + 0x14]
mov byte [esp + 0x30], cl
mov edx, dword [esp + 0x48]
mov dword [esp], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x34]
mov dword [esp + 8], ebp
call fcn.00479430
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
movzx ecx, byte [esp + 0x14]
mov byte [esp + 0x31], cl
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 8], ebx
call fcn.00479430
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
movzx edx, byte [esp + 0x14]
xor ebx, ebx
mov ebp, dword [esp + 0x6c]
xor esi, esi
mov edi, dword [esp + 0x78]
xor ebx, ebx
mov dword [esp + 0x68], ebx
jmp 0x47889a
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov edx, dword [esp + 0x44]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
call fcn.00479550
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], eax
movzx ecx, byte [esp + 0x1c]
mov byte [esp + 0x30], cl
mov edx, dword [esp + 0x14]
mov dword [esp + 0x74], edx
mov ebx, dword [esp + 0x48]
mov dword [esp], ebx
mov ebp, dword [esp + 0x4c]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x60]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x34]
mov dword [esp + 0xc], edi
call fcn.00479550
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], eax
movzx ecx, byte [esp + 0x1c]
mov byte [esp + 0x31], cl
mov edx, dword [esp + 0x14]
mov dword [esp + 0x80], edx
mov ebx, dword [esp + 0x38]
mov dword [esp], ebx
mov ebp, dword [esp + 0x3c]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x60]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0xc], esi
call fcn.00479550
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
movzx edx, byte [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x74]
test ecx, ecx
jge 0x478e6f
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x34]
cmp eax, 0x37
jle 0x4788bf
xor edx, edx
xor edx, edx
mov byte [esp + 0x31], dl
xor edx, edx
mov byte [esp + 0x30], dl
xor edx, edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], esi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0xbc]
add eax, 0x19
cmp eax, 0x18
jb 0x4788ef
movzx eax, byte [esp + 0x31]
jmp 0x4789a7
mov byte [esp + 0x2f], dl
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
neg eax
mov dword [esp + 0xb8], eax
mov dword [esp + 8], eax
call fcn.00479760
movzx eax, byte [esp + 0xc]
mov byte [esp + 0x33], al
mov ecx, dword [esp + 0x48]
mov dword [esp], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 8], ecx
call fcn.00479760
movzx eax, byte [esp + 0xc]
mov byte [esp + 0x32], al
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 8], ecx
call fcn.00479760
movzx edx, byte [esp + 0xc]
movzx eax, byte [esp + 0x2f]
or edx, eax
movzx eax, byte [esp + 0x31]
movzx ecx, byte [esp + 0x32]
or eax, ecx
movzx ecx, byte [esp + 0x30]
movzx ebx, byte [esp + 0x33]
or ecx, ebx
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
mov byte [esp + 0x30], cl
mov ecx, dword [esp + 0x60]
mov byte [esp + 0x2f], dl
mov byte [esp + 0x31], al
neg ecx
mov dword [esp + 0xb8], ecx
mov eax, 1
shl eax, cl
mov dword [esp + 0xc0], eax
lea edx, [ecx - 0x20]
mov eax, dword [esp + 0x60]
add eax, 0x20
shr ebp, cl
shr ebx, cl
mov dword [esp + 0xb4], ebx
shr edi, cl
mov dword [esp + 0xb0], edi
shr esi, cl
mov dword [esp + 0xac], esi
neg edx
mov dword [esp + 0xa8], edx
mov ecx, edx
mov esi, 1
shr esi, cl
mov dword [esp + 0xa4], esi
mov esi, dword [esp + 0x74]
shl esi, cl
mov dword [esp + 0xa0], esi
mov esi, dword [esp + 0x80]
shl esi, cl
mov dword [esp + 0x9c], esi
mov esi, dword [esp + 0x68]
shl esi, cl
mov dword [esp + 0x98], esi
mov ecx, dword [esp + 0xb8]
mov esi, dword [esp + 0x64]
shr esi, cl
mov dword [esp + 0x94], esi
mov edx, dword [esp + 0x68]
shr edx, cl
mov dword [esp + 0x90], edx
neg eax
mov ecx, eax
mov edx, 1
shl edx, cl
mov ebx, dword [esp + 0x74]
shr ebx, cl
mov esi, dword [esp + 0x80]
shr esi, cl
mov edi, dword [esp + 0x68]
shr edi, cl
cmp eax, 0x20
sbb eax, eax
and edx, eax
and ebx, eax
mov dword [esp + 0x8c], ebx
and esi, eax
mov dword [esp + 0x88], esi
and edi, eax
mov eax, dword [esp + 0xb8]
cmp eax, 0x20
sbb eax, eax
mov ecx, edi
mov edi, dword [esp + 0xc0]
and edi, eax
and ebp, eax
mov esi, dword [esp + 0xb0]
and esi, eax
mov ebx, dword [esp + 0x94]
and ebx, eax
mov dword [esp + 0xc0], ebx
mov ebx, dword [esp + 0xb4]
and ebx, eax
mov dword [esp + 0xb4], ebx
mov ebx, dword [esp + 0xac]
and ebx, eax
mov dword [esp + 0xb0], ebx
mov ebx, dword [esp + 0x90]
and ebx, eax
mov dword [esp + 0xac], ebx
mov eax, edi
add edi, 0xffffffff
mov dword [esp + 0x5c], edi
mov ebx, dword [esp + 0x7c]
and ebx, edi
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x64]
and ebx, edi
mov dword [esp + 0x50], ebx
mov edi, dword [esp + 0xa8]
cmp edi, 0x20
sbb edi, edi
mov ebx, dword [esp + 0xa4]
and ebx, edi
or ebx, edx
add eax, 0xffffffff
adc ebx, 0xffffffff
mov dword [esp + 0x84], ebx
mov eax, dword [esp + 0xa0]
and eax, edi
or ebp, eax
mov eax, dword [esp + 0x9c]
and eax, edi
or esi, eax
mov eax, dword [esp + 0x98]
and eax, edi
mov edx, dword [esp + 0xc0]
or eax, edx
mov edx, dword [esp + 0x8c]
or edx, ebp
mov dword [esp + 0xc0], edx
mov ebp, dword [esp + 0x88]
or esi, ebp
mov dword [esp + 0x7c], esi
mov ebp, dword [esp + 0x80]
and ebp, ebx
mov dword [esp + 0x58], ebp
or eax, ecx
mov edi, dword [esp + 0x68]
and edi, ebx
mov ecx, edx
movzx edx, byte [esp + 0x2f]
test dl, dl
je 0x478bcd
test edi, edi
seta cl
xchg esi, ebx
sete bl
xchg esi, ebx
mov ebx, dword [esp + 0x50]
test ebx, ebx
xchg ebp, ebx
seta bl
xchg ebp, ebx
and esi, ebp
or esi, ecx
test dl, dl
mov ecx, dword [esp + 0xc0]
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x58]
mov edx, esi
mov esi, dword [esp + 0x7c]
jmp 0x478bd2
mov edx, 1
je 0x478c0b
mov esi, dword [esp + 0x50]
test esi, esi
xchg esi, ebx
sete bl
xchg esi, ebx
test edi, edi
xchg edi, ebx
sete bl
xchg edi, ebx
and esi, edi
xchg esi, eax
test al, al
xchg esi, eax
je 0x478c07
mov esi, dword [esp + 0xcc]
test esi, 1
sete dl
and edx, 1
jmp 0x478c12
mov esi, dword [esp + 0x7c]
mov esi, dword [esp + 0xcc]
test dl, dl
je 0x478c1f
mov edx, dword [esp + 0xac]
jmp 0x478c2c
add eax, 0xffffffff
mov edx, dword [esp + 0xac]
adc edx, 0xffffffff
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
movzx edi, byte [esp + 0x31]
xchg edi, eax
test al, al
xchg edi, eax
je 0x478cd6
mov edx, dword [esp + 0x60]
inc edx
neg edx
mov ecx, edx
mov eax, 1
shl eax, cl
lea esi, [ecx - 0x20]
mov ecx, esi
mov edi, 1
shl edi, cl
neg ecx
mov ebx, 1
shr ebx, cl
cmp edx, 0x20
sbb edx, edx
and eax, edx
mov dword [esp + 0xac], eax
mov edx, dword [esp + 0x54]
cmp eax, edx
setb al
cmp esi, 0x20
sbb esi, esi
and edi, esi
cmp ecx, 0x20
sbb esi, esi
and ebx, esi
or edi, ebx
cmp edi, ebp
sete bl
xchg esi, ebx
setb bl
xchg esi, ebx
and eax, ebx
or eax, esi
test al, al
je 0x478cae
mov eax, dword [esp + 0x7c]
mov ecx, 1
jmp 0x478d2c
mov eax, dword [esp + 0xac]
cmp eax, edx
sete al
and eax, ebx
test al, al
je 0x478cce
mov eax, dword [esp + 0x7c]
test eax, 1
setne cl
jmp 0x478d2c
mov eax, dword [esp + 0x7c]
xor ecx, ecx
jmp 0x478d2c
mov edx, dword [esp + 0x60]
inc edx
neg edx
mov ecx, edx
shr ebp, cl
mov eax, dword [esp + 0x54]
shr eax, cl
lea esi, [ecx - 0x20]
mov ecx, esi
mov edi, dword [esp + 0x58]
shr edi, cl
neg ecx
mov ebx, dword [esp + 0x58]
shl ebx, cl
cmp esi, 0x20
sbb esi, esi
and edi, esi
cmp ecx, 0x20
sbb esi, esi
and ebx, esi
cmp edx, 0x20
sbb edx, edx
and eax, edx
or ebx, eax
or edi, ebx
test edx, ebp
sete cl
cmp edi, 1
sete al
and ecx, eax
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
movzx ebx, byte [esp + 0x30]
test bl, bl
je 0x478d8c
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x70]
test esi, ebx
sete bl
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x74]
test edi, esi
xchg esi, ebx
sete bl
xchg esi, ebx
and ebx, esi
test bl, bl
je 0x478d8c
mov ebx, dword [esp + 0xcc]
test ebx, 1
sete bl
and ebx, 1
test bl, bl
je 0x478d8c
movzx esi, byte [esp + 0x31]
xchg esi, eax
test al, al
xchg esi, eax
mov esi, dword [esp + 0xc0]
mov ebx, dword [esp + 0xb4]
jmp 0x478da9
mov esi, dword [esp + 0xc0]
add esi, 1
mov ebx, dword [esp + 0xb4]
adc ebx, 0
movzx edi, byte [esp + 0x31]
xchg edi, eax
test al, al
xchg edi, eax
je 0x478dbd
test ebp, ebp
xchg ebp, ebx
sete bl
xchg ebp, ebx
test edx, edx
sete dl
and edx, ebp
jmp 0x478dbf
xor edx, edx
mov ebp, dword [esp + 0xc8]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1d], cl
call fcn.00479010
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0xbc]
sub ecx, edx
dec ecx
mov dword [eax + 0x10], ecx
add esp, 0xc4
ret
mov eax, dword [esp + 0xc8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov byte [esp + 0x1c], 1
mov byte [esp + 0x1d], 0
call fcn.00479010
add esp, 0xc4
ret
mov eax, dword [esp + 0xc8]
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
add esp, 0xc4
ret
lea eax, [0x4b70a0]
mov dword [esp], eax
lea eax, [0x4d9410]
mov dword [esp + 4], eax
call fcn.0043d8a0
nop
call fcn.0046c370
jmp fcn.004785a0