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

Disassembly:
sub esp, 0xa8
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x64], ebx
mov esi, ecx
mov dword [esp + 0x68], ebx
lea edx, [esp + 0x38]
mov dword [esp + 0x50], esi
mov ecx, edi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
call fcn.00402dba
test eax, eax
jne 0x404882
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
cmp edx, 2
jne 0x40439d
cmp ecx, ebx
jne 0x40439d
jmp 0x404370
mov eax, dword [esp + 0x28]
mov ecx, edi
or eax, dword [esp + 0x2c]
je 0x404384
call fcn.00402f4e
test eax, eax
jne 0x404882
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00402dba
test eax, eax
je 0x404357
jmp 0x404882
lea edx, [esp + 0x38]
call fcn.00402dba
test eax, eax
jne 0x404882
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
cmp edx, 3
jne 0x40444a
cmp ecx, ebx
jne 0x40444a
lea ecx, [esp + 0x80]
call fcn.00402c96
push dword [esp + 0xcc]
mov eax, dword [esi + 0x30]
mov edx, edi
mov ecx, dword [esi + 0x34]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0x84]
push eax
push dword [esi + 0x3c]
mov dword [esp + 0xc0], ecx
push dword [esi + 0x38]
mov ecx, dword [esp + 0xcc]
push 8
push dword [esp + 0xd4]
call fcn.004040c2
mov ecx, dword [esp + 0x9c]
mov ebx, eax
mov eax, dword [esp + 0xdc]
add esp, 0x18
mov edx, dword [esp + 0xcc]
mov dword [eax], ecx
lea ecx, [esp + 0x80]
call fcn.00402cbf
test ebx, ebx
je 0x40442d
mov eax, ebx
jmp 0x404882
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.00402dba
test eax, eax
jne 0x404882
mov ecx, dword [esp + 0x3c]
xor ebx, ebx
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0xc8]
cmp edx, 4
jne 0x4044b3
cmp ecx, ebx
jne 0x4044b3
push ebp
lea eax, [esp + 0x58]
mov edx, edi
push eax
mov eax, dword [esp + 0xcc]
lea ebx, [esi + 0x40]
push ebx
mov ecx, esi
push dword [eax]
push dword [esp + 0xd0]
push 0x40000000
call fcn.00403f54
add esp, 0x18
test eax, eax
jne 0x404882
mov eax, dword [esi + 0x38]
lea edx, [esp + 0x38]
add dword [ebx], eax
mov ecx, edi
mov eax, dword [esi + 0x3c]
adc dword [ebx + 4], eax
call fcn.00402dba
test eax, eax
jne 0x404882
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, edx
or eax, ecx
jne 0x4044c0
xor eax, eax
jmp 0x404882
cmp edx, 5
jne 0x40487f
xor eax, eax
cmp ecx, eax
jne 0x40487f
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.00402ef0
test eax, eax
jne 0x404882
mov eax, dword [esp + 0x18]
mov dword [esi + 0x48], eax
jmp 0x40485c
mov ebx, dword [esp + 0x38]
mov eax, ebx
or eax, dword [esp + 0x3c]
je 0x404871
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00402dba
test eax, eax
jne 0x404882
mov eax, dword [edi + 4]
xor edx, edx
cmp dword [esp + 0x2c], edx
ja 0x40487f
mov ecx, dword [esp + 0x28]
jb 0x404542
cmp ecx, eax
ja 0x40487f
cmp dword [esp + 0x3c], edx
ja 0x404855
cmp ebx, 0x100
jae 0x404855
sub ebx, 0xe
je 0x4047d4
sub ebx, 1
je 0x4047b6
push 2
pop edx
sub ebx, edx
je 0x404648
sub ebx, 1
je 0x404643
sub ebx, edx
je 0x40461d
sub ebx, 1
jne 0x404855
lea ebx, [esi + 0x5c]
mov edx, ebp
mov ecx, ebx
call fcn.00402c76
mov edx, dword [esp + 0x18]
mov ecx, edi
push ebp
push ebx
call fcn.0040303e
pop ecx
pop ecx
test eax, eax
jne 0x404882
mov eax, dword [edi + 4]
test eax, eax
je 0x40487f
dec eax
mov dword [edi + 4], eax
mov eax, dword [edi]
mov cl, byte [eax]
inc eax
test cl, cl
mov dword [edi], eax
mov ecx, edi
je 0x40460c
lea edx, [esp + 0x4c]
call fcn.00402ef0
test eax, eax
jne 0x404882
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x4c]
cmp ecx, dword [eax]
jae 0x40487f
mov edx, dword [esp + 0xc0]
mov eax, dword [edx + ecx*8]
mov dword [esp + 0x74], eax
mov eax, dword [edx + ecx*8 + 4]
lea ecx, [esp + 0x74]
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0x18]
push ebp
push ebx
call fcn.004030e0
pop ecx
jmp 0x4047c6
lea ecx, [esi + 0x64]
mov eax, dword [esp + 0xc4]
mov edx, dword [esp + 0x18]
push ebp
push dword [eax]
push dword [esp + 0xc8]
push edi
call fcn.004041dd
add esp, 0x10
jmp 0x4047c7
lea ecx, [esi + 0x6c]
jmp 0x404620
test eax, eax
je 0x40487f
dec eax
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dl, byte [eax]
inc eax
mov byte [esp + 0x12], dl
mov dword [esp + 0x34], eax
mov dword [edi], eax
test dl, dl
jne 0x40466c
lea ebx, [ecx - 1]
jmp 0x4046a4
lea edx, [esp + 0x14]
mov ecx, edi
call fcn.00402ef0
test eax, eax
jne 0x404882
mov eax, dword [esp + 0xc4]
mov ebx, dword [esp + 0x14]
cmp ebx, dword [eax]
jae 0x40487f
mov ecx, dword [esp + 0xc0]
mov eax, dword [ecx + ebx*8]
mov ebx, dword [ecx + ebx*8 + 4]
mov dword [esp + 0x34], eax
test bl, 1
jne 0x40487f
mov eax, dword [esp + 0x18]
lea eax, [eax*4 + 4]
push eax
push ebp
call dword [ebp]
mov dword [esi + 0x7c], eax
pop ecx
pop ecx
test eax, eax
je 0x404990
test ebx, ebx
jne 0x4046d8
xor eax, eax
mov dword [esi + 0x80], eax
jmp 0x4046fb
push ebx
push ebp
call dword [ebp]
mov dword [esi + 0x80], eax
pop ecx
pop ecx
test eax, eax
je 0x404990
push ebx
push dword [esp + 0x38]
push eax
call fcn.00410ef0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x7c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [edx], eax
mov ecx, eax
add edx, 4
cmp dword [esp + 0x20], eax
jne 0x40472a
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0x10
jmp 0x40479a
push 2
pop eax
cmp ebx, eax
jb 0x40487f
mov ebp, dword [esp + 0x24]
cmp byte [ebx + ebp - 2], cl
jne 0x40487f
cmp byte [ebx + ebp - 1], cl
jne 0x40487f
cmp ecx, ebx
je 0x40487f
add ecx, dword [esp + 0x24]
xor ebp, ebp
cmp word [ecx], bp
mov ebp, dword [esp + 0xc8]
je 0x404777
xor ebp, ebp
add ecx, eax
cmp word [ecx], bp
jne 0x404769
mov ebp, dword [esp + 0xc8]
sub ecx, dword [esp + 0x24]
add ecx, eax
mov eax, ecx
shr eax, 1
mov dword [edx], eax
add edx, 4
sub dword [esp + 0x20], 1
push 2
pop eax
jne 0x40474d
xor edx, edx
cmp ecx, ebx
push 0x10
pop eax
cmove eax, edx
test eax, eax
jne 0x404882
cmp byte [esp + 0x12], al
jne 0x40485c
sub dword [edi + 4], ebx
add dword [edi], ebx
jmp 0x40485c
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call fcn.00402fca
pop ecx
test eax, eax
jne 0x404882
jmp 0x40485c
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x44]
push eax
mov edx, ebx
mov ecx, edi
call fcn.00402fca
pop ecx
test eax, eax
jne 0x404882
mov eax, dword [esp + 0x44]
xor edx, edx
and dword [esp + 0x1c], edx
mov cl, dl
mov dword [esp + 0x34], eax
mov byte [esp + 0x12], cl
test ebx, ebx
je 0x40484d
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x48], edx
test edx, edx
jne 0x40481c
mov cl, byte [eax]
push 8
mov byte [esp + 0x16], cl
pop edx
dec edx
movzx eax, cl
mov cl, dl
shr eax, cl
mov ecx, dword [esp + 0x34]
and eax, 1
add esi, eax
cmp dword [esp + 0x48], 0
lea eax, [ecx + 1]
cmovne eax, ecx
mov cl, byte [esp + 0x12]
mov dword [esp + 0x34], eax
sub ebx, 1
jne 0x40480b
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x50]
xor eax, eax
mov dword [esp + 0x48], eax
jmp 0x40485c
sub eax, ecx
add dword [edi], ecx
mov dword [edi + 4], eax
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.00402dba
test eax, eax
je 0x404502
jmp 0x404882
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x54]
je 0x4048a2
push 0x10
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
je 0x4048b3
mov ecx, edi
call fcn.00402f4e
test eax, eax
jne 0x404882
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00402dba
test eax, eax
je 0x40488d
jmp 0x404882
xor eax, eax
mov byte [esp + 0x10], 0x80
mov dword [esp + 0x4c], eax
mov ebx, eax
mov dword [esp + 0x24], eax
xorps xmm0, xmm0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
mov byte [esp + 0x11], al
mov eax, dword [esi + 4]
movlpd qword [esp + 0x28], xmm0
lea eax, [eax*4 + 4]
push eax
push ebp
call dword [ebp]
mov dword [esi + 0x74], eax
pop ecx
pop ecx
test eax, eax
je 0x404990
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x40490d
mov dword [esi + 0x78], eax
jmp 0x40491e
shl eax, 2
push eax
push ebp
call dword [ebp]
mov dword [esi + 0x78], eax
pop ecx
pop ecx
test eax, eax
je 0x404990
mov eax, dword [esi + 0x48]
lea eax, [eax*8 + 8]
push eax
push ebp
call dword [ebp]
mov dword [esi + 0x4c], eax
pop ecx
pop ecx
test eax, eax
je 0x404990
mov eax, dword [esi + 0x48]
add eax, 7
shr eax, 3
test eax, eax
jne 0x40494a
xor edx, edx
mov dword [esi + 0x50], edx
jmp 0x40495a
push eax
push ebp
call dword [ebp]
mov dword [esi + 0x50], eax
pop ecx
pop ecx
test eax, eax
je 0x404990
xor edx, edx
mov edi, dword [esi + 0x48]
test edi, edi
jne 0x404969
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], edx
jmp 0x404999
lea eax, [edi + 7]
shr eax, 3
push eax
push ebp
call dword [ebp]
mov dword [esi + 0x54], eax
pop ecx
pop ecx
test eax, eax
je 0x404990
mov eax, edi
shl eax, 2
push eax
push ebp
call dword [ebp]
mov dword [esi + 0x58], eax
pop ecx
pop ecx
test eax, eax
jne 0x404997
push 2
jmp 0x404881
xor edx, edx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4049d3
dec eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x6c]
mov cl, byte [eax]
inc eax
mov byte [esp + 0x12], cl
mov dword [esp + 0x6c], eax
test cl, cl
je 0x4049bf
mov dword [esp + 0x20], eax
jmp 0x4049d3
mov ecx, dword [esp + 0x58]
add ecx, 7
mov dword [esp + 0x34], eax
shr ecx, 3
add ecx, eax
mov dword [esp + 0x20], ecx
mov edi, edx
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp dword [esp + 0x18], ebx
jbe 0x404aed
mov al, byte [esp + 0x10]
mov dword [esp + 0x14], edx
test al, al
jne 0x404a20
mov eax, dword [esi + 0x50]
lea ecx, [edi - 1]
mov dl, byte [esp + 0x13]
shr ecx, 3
mov byte [esp + 0x10], 0x80
mov byte [ecx + eax], dl
mov eax, dword [esi + 0x54]
mov dl, byte [esp + 0x11]
mov byte [ecx + eax], dl
xor eax, eax
mov edx, dword [esp + 0x14]
mov byte [esp + 0x13], al
mov byte [esp + 0x11], al
mov eax, dword [esi + 0x4c]
xor ecx, ecx
mov dword [eax + edi*8], ebp
mov dword [eax + edi*8 + 4], edx
mov eax, dword [esi + 0x58]
mov dword [eax + edi*4], ecx
cmp dword [esp + 0x44], ecx
je 0x404b07
mov ecx, edi
mov edx, 0x80
and ecx, 7
mov eax, edi
sar edx, cl
mov ecx, dword [esp + 0x44]
shr eax, 3
test byte [eax + ecx], dl
je 0x404b07
cmp dword [esp + 0x48], 0
je 0x404a98
mov ecx, dword [esp + 0x4c]
mov edx, 0x80
mov esi, dword [esp + 0x48]
and ecx, 7
sar edx, cl
mov ecx, dword [esp + 0x4c]
mov eax, ecx
shr eax, 3
test byte [eax + esi], dl
mov esi, dword [esp + 0x50]
jne 0x404a91
mov al, byte [esp + 0x13]
or al, byte [esp + 0x10]
mov byte [esp + 0x13], al
inc ecx
mov dword [esp + 0x4c], ecx
jmp 0x404aa4
mov al, byte [esp + 0x13]
or al, byte [esp + 0x10]
mov byte [esp + 0x13], al
cmp dword [esp + 0x24], 0
jne 0x404b83
mov eax, dword [esi + 0x78]
or dword [eax + edi*4], 0xffffffff
mov edx, dword [esp + 0x14]
mov al, byte [esp + 0x10]
inc edi
shr al, 1
mov byte [esp + 0x10], al
cmp edi, dword [esp + 0x18]
jb 0x4049ef
mov eax, dword [esi + 0x50]
lea ecx, [edi - 1]
mov dl, byte [esp + 0x13]
shr ecx, 3
mov byte [ecx + eax], dl
mov eax, dword [esi + 0x54]
mov dl, byte [esp + 0x11]
mov byte [ecx + eax], dl
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x24], 0
mov eax, dword [esi + 0x4c]
mov dword [eax + edi*8], ebp
mov dword [eax + edi*8 + 4], edx
jne 0x40487f
jmp 0x404d38
cmp dword [esp + 0x24], 0
jne 0x404b83
cmp ebx, dword [esi + 4]
jae 0x40487f
mov eax, dword [esi + 0x74]
mov dword [eax + ebx*4], edi
xor eax, eax
inc eax
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x1c], eax
je 0x404b44
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x5c]
call fcn.00402ef0
test eax, eax
jne 0x404882
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x404b83
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x14]
movzx ecx, byte [eax + ebx]
mov eax, dword [esi + 0x1c]
add ecx, dword [eax + ebx*4]
mov eax, dword [esi + 0x24]
add ebp, dword [eax + ecx*8]
adc edx, dword [eax + ecx*8 + 4]
mov dword [esp + 0x14], edx
cmp edx, dword [eax + ecx*8 + 4]
jb 0x40487f
ja 0x404b80
cmp ebp, dword [eax + ecx*8]
jb 0x40487f
inc ebx
jmp 0x404b0e
cmp dword [esp + 0x44], 0
mov eax, dword [esi + 0x78]
mov dword [eax + edi*4], ebx
je 0x404bae
mov ecx, edi
mov edx, 0x80
and ecx, 7
mov eax, edi
sar edx, cl
mov ecx, dword [esp + 0x44]
shr eax, 3
test byte [eax + ecx], dl
jne 0x404ab6
sub dword [esp + 0x24], 1
jne 0x404c98
mov eax, dword [esi + 0x20]
movzx ecx, byte [eax + ebx]
mov eax, dword [esi + 0x1c]
add ecx, dword [eax + ebx*4]
mov eax, dword [esi + 0x24]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0x74]
mov eax, dword [eax + ebx*4]
mov esi, dword [ecx + eax*8]
sub ebp, dword [ecx + eax*8]
mov dword [esp + 0x74], esi
mov esi, dword [ecx + eax*8 + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x7c]
sbb eax, esi
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x50]
cmp ecx, eax
jb 0x40487f
ja 0x404c0f
cmp edx, ebp
jb 0x40487f
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x38]
add ebp, edx
adc eax, ecx
mov dword [esp + 0x14], eax
cmp eax, ecx
jb 0x40487f
ja 0x404c31
cmp ebp, edx
jb 0x40487f
cmp dword [esp + 0x1c], 1
jne 0x404c5f
cmp dword [esi + 0xc], 0
je 0x404c5f
mov ecx, edi
mov edx, 0x80
and ecx, 7
mov eax, edi
sar edx, cl
mov ecx, dword [esi + 0xc]
shr eax, 3
test byte [eax + ecx], dl
je 0x404c5f
mov eax, dword [esi + 0x10]
mov eax, dword [eax + ebx*4]
jmp 0x404c80
cmp byte [esp + 0x12], 0
jne 0x404c73
mov eax, dword [esp + 0x34]
test eax, eax
je 0x404c92
test byte [eax], 0x80
je 0x404c92
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
add edx, 4
mov dword [esp + 0x20], edx
mov ecx, dword [esi + 0x58]
mov dword [ecx + edi*4], eax
mov al, byte [esp + 0x11]
or al, byte [esp + 0x10]
mov byte [esp + 0x11], al
inc ebx
jmp 0x404ab6
lea edx, [esp + 0x28]
lea ecx, [esp + 0x64]
call fcn.00402dba
test eax, eax
jne 0x404882
add ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
adc edx, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x2c]
jb 0x40487f
ja 0x404cd3
cmp ebp, dword [esp + 0x28]
jb 0x40487f
cmp byte [esp + 0x12], 0
jne 0x404cef
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x404aba
test byte [ecx], 0x80
je 0x404aba
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x58]
add dword [esp + 0x20], 4
mov eax, dword [eax]
mov dword [ecx + edi*4], eax
mov al, byte [esp + 0x10]
or byte [esp + 0x11], al
jmp 0x404abe
cmp dword [esp + 0x5c], 0
je 0x40487f
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x5c]
call fcn.00402ef0
test eax, eax
jne 0x404882
cmp dword [esp + 0x1c], eax
jne 0x40487f
inc ebx
mov eax, dword [esi + 0x74]
mov dword [eax + ebx*4], edi
cmp ebx, dword [esi + 4]
jb 0x404d0d
cmp dword [esp + 0x5c], 0
je 0x4044b9
mov eax, dword [esp + 0x60]
neg eax
sbb eax, eax
and eax, 0x10
jmp 0x404882