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

Disassembly:
sub esp, 0xa4
push ebx
push ebp
mov ebp, dword [esp + 0xb4]
mov eax, edx
mov dword [esp + 0xa4], eax
mov ebx, ecx
mov dword [esp + 0x20], ebx
push esi
push edi
cmp ebp, 0xa
jae 0x403095
mov eax, 0xffffffec
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret
mov edi, dword [esp + 0xc0]
add eax, ebx
mov esi, dword [esp + 0xb8]
mov ecx, esi
mov dword [esp + 0xa8], eax
add eax, 0xfffffffd
mov dword [esp + 0x40], eax
lea eax, [edi + 4]
mov dword [esp + 0x14], eax
call fcn.00401080
movzx eax, ax
lea ecx, [esi + 2]
mov dword [esp + 0x1c], eax
call fcn.00401080
movzx eax, ax
lea ecx, [esi + 4]
mov dword [esp + 0x98], eax
call fcn.00401080
movzx ecx, ax
lea eax, [esi + 6]
mov dword [esp + 0x94], eax
sub ebp, ecx
add eax, dword [esp + 0x1c]
sub ebp, dword [esp + 0x98]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
sub ebp, 6
add eax, dword [esp + 0x98]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xac]
add eax, 3
mov dword [esp + 0x9c], ecx
shr eax, 2
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xa4], 1
lea ecx, [eax + ebx]
lea edx, [ecx + eax]
mov dword [esp + 0x38], ecx
add eax, edx
mov dword [esp + 0x34], edx
mov ebp, eax
mov dword [esp + 0x30], eax
mov eax, dword [edi]
mov esi, ecx
mov edi, dword [esp + 0xb0]
mov ebx, edx
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], eax
cmp edi, dword [esp + 0xbc]
ja 0x403085
push dword [esp + 0x1c]
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x48]
call fcn.00401090
add esp, 4
cmp eax, 0xffffff88
ja 0x4039e8
push dword [esp + 0x98]
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x5c]
call fcn.00401090
add esp, 4
cmp eax, 0xffffff88
ja 0x4039e8
push dword [esp + 0x9c]
mov edx, dword [esp + 0xa4]
lea ecx, [esp + 0x70]
call fcn.00401090
add esp, 4
cmp eax, 0xffffff88
ja 0x4039e8
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0x80]
mov edx, dword [esp + 0xa0]
push edi
lea edx, [edx + eax]
call fcn.00401090
add esp, 4
cmp eax, 0xffffff88
ja 0x4039e8
mov ecx, ebp
cmp ecx, dword [esp + 0x40]
jae 0x40341a
mov eax, 0x1f
sub eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
inc eax
and eax, 0x1f
mov dword [esp + 0x1c], eax
nop
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
and ecx, 0x1f
shl edx, cl
mov ecx, eax
shr edx, cl
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x84]
movzx eax, byte [edi + edx*2]
movzx ebp, byte [edi + edx*2 + 1]
mov byte [ecx], al
inc ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x5c]
and ecx, 0x1f
add ebp, dword [esp + 0x48]
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
mov ecx, dword [esp + 0x24]
movzx eax, byte [edi + edx*2]
movzx ebx, byte [edi + edx*2 + 1]
mov byte [ecx], al
inc ecx
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x70]
and ecx, 0x1f
add ebx, dword [esp + 0x5c]
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
mov ecx, dword [esp + 0x2c]
movzx eax, byte [eax + edx*2]
movzx edi, byte [edi + edx*2 + 1]
mov edx, dword [esp + 0x80]
mov byte [ecx], al
inc ecx
mov dword [esp + 0x2c], ecx
mov ecx, esi
and ecx, 0x1f
add edi, dword [esp + 0x70]
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
mov ecx, dword [esp + 0x14]
movzx eax, byte [ecx + edx*2 + 1]
add esi, eax
movzx eax, byte [ecx + edx*2]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
mov byte [ecx], al
inc ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, ebp
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
mov ecx, dword [esp + 0x28]
movzx eax, byte [eax + edx*2 + 1]
add eax, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x48], eax
movzx eax, byte [ebp + edx*2]
mov edx, dword [esp + 0x58]
mov byte [ecx], al
inc ecx
mov dword [esp + 0x28], ecx
mov ecx, ebx
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
movzx eax, byte [ebp + edx*2 + 1]
add eax, ebx
mov dword [esp + 0x5c], eax
movzx eax, byte [ebp + edx*2]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x2c]
mov byte [ecx], al
inc ecx
mov dword [esp + 0x24], ecx
mov ecx, edi
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
mov ecx, esi
and ecx, 0x1f
movzx eax, byte [ebp + edx*2 + 1]
add eax, edi
mov dword [esp + 0x70], eax
movzx eax, byte [ebp + edx*2]
mov edx, dword [esp + 0x80]
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
lea ecx, [esp + 0x44]
mov byte [ebx], al
inc ebx
mov dword [esp + 0x2c], ebx
movzx eax, byte [ebp + edx*2 + 1]
add eax, esi
mov dword [esp + 0x84], eax
movzx eax, byte [ebp + edx*2]
mov ebp, dword [esp + 0x18]
mov byte [ebp], al
inc ebp
mov dword [esp + 0x18], ebp
call fcn.004011d0
xor esi, esi
lea ecx, [esp + 0x58]
test eax, eax
cmove esi, dword [esp + 0xa4]
call fcn.004011d0
neg eax
lea ecx, [esp + 0x6c]
sbb edi, edi
inc edi
and edi, esi
call fcn.004011d0
xor esi, esi
lea ecx, [esp + 0x80]
test eax, eax
cmove esi, edi
call fcn.004011d0
neg eax
sbb eax, eax
inc eax
and esi, eax
cmp ebp, dword [esp + 0x40]
mov dword [esp + 0xa4], esi
sbb eax, eax
test esi, eax
mov eax, dword [esp + 0x1c]
jne 0x403230
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
jmp 0x403423
mov edi, 0x1f
sub edi, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x28], eax
ja 0x403085
cmp esi, dword [esp + 0x34]
ja 0x403085
cmp ebx, ecx
ja 0x403085
lea esi, [eax - 3]
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], esi
call fcn.00401200
mov ebx, dword [esp + 0x28]
neg eax
sbb ecx, ecx
inc ecx
cmp ebx, esi
lea esi, [edi + 1]
sbb eax, eax
neg eax
test eax, ecx
je 0x4034f9
mov eax, esi
mov dword [esp + 0x94], esi
mov esi, dword [esp + 0x14]
and eax, 0x1f
mov dword [esp + 0x20], eax
mov ebp, ebx
mov edi, dword [esp + 0x48]
mov ecx, edi
mov ebx, dword [esp + 0x44]
and ecx, 0x1f
mov edx, ebx
shl edx, cl
mov ecx, eax
shr edx, cl
movzx eax, byte [esi + edx*2 + 1]
add edi, eax
movzx eax, byte [esi + edx*2]
mov ecx, edi
mov byte [ebp], al
and ecx, 0x1f
shl ebx, cl
mov ecx, dword [esp + 0x20]
shr ebx, cl
lea ecx, [esp + 0x44]
movzx eax, byte [esi + ebx*2 + 1]
add eax, edi
mov dword [esp + 0x48], eax
movzx eax, byte [esi + ebx*2]
mov byte [ebp + 1], al
add ebp, 2
call fcn.00401200
neg eax
sbb ecx, ecx
inc ecx
cmp ebp, dword [esp + 0x3c]
sbb eax, eax
neg eax
test eax, ecx
mov eax, dword [esp + 0x20]
jne 0x403483
mov esi, dword [esp + 0x94]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x44]
call fcn.00401200
neg eax
sbb ecx, ecx
inc ecx
cmp ebx, dword [esp + 0x38]
sbb eax, eax
and esi, 0x1f
neg eax
test eax, ecx
je 0x403563
mov ebp, dword [esp + 0x14]
nop word [eax + eax]
mov edi, dword [esp + 0x48]
mov ecx, edi
mov edx, dword [esp + 0x44]
and ecx, 0x1f
shl edx, cl
mov ecx, esi
shr edx, cl
lea ecx, [esp + 0x44]
movzx eax, byte [ebp + edx*2 + 1]
add edi, eax
mov al, byte [ebp + edx*2]
mov byte [ebx], al
inc ebx
mov dword [esp + 0x48], edi
call fcn.00401200
neg eax
sbb ecx, ecx
inc ecx
cmp ebx, dword [esp + 0x38]
sbb eax, eax
neg eax
test eax, ecx
jne 0x403520
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
cmp ebx, dword [esp + 0x38]
jae 0x40359b
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov ecx, ebp
and ecx, 0x1f
shl edx, cl
mov ecx, esi
shr edx, cl
movzx eax, byte [edi + edx*2 + 1]
add ebp, eax
mov al, byte [edi + edx*2]
mov byte [ebx], al
inc ebx
cmp ebx, dword [esp + 0x38]
jb 0x403571
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x58]
add eax, 0xfffffffd
mov dword [esp + 0x20], eax
call fcn.00401200
mov ebx, dword [esp + 0x24]
neg eax
sbb ecx, ecx
inc ecx
cmp ebx, dword [esp + 0x20]
sbb eax, eax
neg eax
test eax, ecx
je 0x403645
nop dword [eax + eax]
mov edi, dword [esp + 0x5c]
mov ecx, edi
mov ebx, dword [esp + 0x58]
and ecx, 0x1f
mov ebp, dword [esp + 0x14]
mov edx, ebx
shl edx, cl
mov ecx, esi
shr edx, cl
mov ecx, dword [esp + 0x24]
movzx eax, byte [ebp + edx*2 + 1]
add edi, eax
movzx eax, byte [ebp + edx*2]
mov byte [ecx], al
inc ecx
mov dword [esp + 0x24], ecx
mov ecx, edi
and ecx, 0x1f
shl ebx, cl
mov ecx, esi
shr ebx, cl
lea ecx, [esp + 0x58]
movzx eax, byte [ebp + ebx*2 + 1]
add eax, edi
mov edi, ebp
mov dword [esp + 0x5c], eax
movzx eax, byte [edi + ebx*2]
mov ebx, dword [esp + 0x24]
mov byte [ebx], al
inc ebx
mov dword [esp + 0x24], ebx
call fcn.00401200
neg eax
sbb ecx, ecx
inc ecx
cmp ebx, dword [esp + 0x20]
sbb eax, eax
neg eax
test eax, ecx
jne 0x4035d0
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x58]
call fcn.00401200
neg eax
sbb ecx, ecx
inc ecx
cmp ebx, dword [esp + 0x34]
sbb eax, eax
neg eax
test eax, ecx
je 0x4036ab
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x5c]
mov ecx, edi
mov edx, dword [esp + 0x58]
and ecx, 0x1f
mov eax, dword [esp + 0x14]
shl edx, cl
mov ecx, esi
shr edx, cl
lea ecx, [esp + 0x58]
movzx eax, byte [eax + edx*2 + 1]
add edi, eax
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x14]
mov al, byte [edi + edx*2]
mov byte [ebx], al
inc ebx
call fcn.00401200
neg eax
sbb ecx, ecx
inc ecx
cmp ebx, ebp
sbb eax, eax
neg eax
test eax, ecx
jne 0x403663
mov ebp, dword [esp + 0x18]
cmp ebx, dword [esp + 0x34]
jae 0x4036df
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov ecx, ebp
and ecx, 0x1f
shl edx, cl
mov ecx, esi
shr edx, cl
movzx eax, byte [edi + edx*2 + 1]
add ebp, eax
mov al, byte [edi + edx*2]
mov byte [ebx], al
inc ebx
cmp ebx, dword [esp + 0x34]
jb 0x4036b5
mov dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x6c]
add eax, 0xfffffffd
mov dword [esp + 0x20], eax
call fcn.00401200
mov ebx, dword [esp + 0x2c]
neg eax
sbb ecx, ecx
inc ecx
cmp ebx, dword [esp + 0x20]
sbb eax, eax
neg eax
test eax, ecx
je 0x403785
mov ebp, ebx
nop
mov edi, dword [esp + 0x70]
mov ecx, edi
mov ebx, dword [esp + 0x6c]
and ecx, 0x1f
mov edx, ebx
shl edx, cl
mov ecx, esi
shr edx, cl
mov ecx, dword [esp + 0x14]
movzx eax, byte [ecx + edx*2 + 1]
add edi, eax
movzx eax, byte [ecx + edx*2]
mov ecx, edi
mov byte [ebp], al
mov eax, dword [esp + 0x14]
and ecx, 0x1f
shl ebx, cl
mov ecx, esi
shr ebx, cl
lea ecx, [esp + 0x6c]
movzx eax, byte [eax + ebx*2 + 1]
add eax, edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x70], eax
movzx eax, byte [edi + ebx*2]
mov byte [ebp + 1], al
add ebp, 2
call fcn.00401200
neg eax
sbb ecx, ecx
inc ecx
cmp ebp, dword [esp + 0x20]
sbb eax, eax
neg eax
test eax, ecx
jne 0x403710
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x6c]
call fcn.00401200
neg eax
sbb ecx, ecx
inc ecx
cmp ebx, dword [esp + 0x30]
sbb eax, eax
neg eax
test eax, ecx
je 0x4037eb
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x70]
mov ecx, edi
mov edx, dword [esp + 0x6c]
and ecx, 0x1f
mov eax, dword [esp + 0x14]
shl edx, cl
mov ecx, esi
shr edx, cl
lea ecx, [esp + 0x6c]
movzx eax, byte [eax + edx*2 + 1]
add edi, eax
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0x14]
mov al, byte [edi + edx*2]
mov byte [ebx], al
inc ebx
call fcn.00401200
neg eax
sbb ecx, ecx
inc ecx
cmp ebx, ebp
sbb eax, eax
neg eax
test eax, ecx
jne 0x4037a3
mov ebp, dword [esp + 0x18]
cmp ebx, dword [esp + 0x30]
jae 0x40381f
mov ebp, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov ecx, ebp
and ecx, 0x1f
shl edx, cl
mov ecx, esi
shr edx, cl
movzx eax, byte [edi + edx*2 + 1]
add ebp, eax
mov al, byte [edi + edx*2]
mov byte [ebx], al
inc ebx
cmp ebx, dword [esp + 0x30]
jb 0x4037f5
mov dword [esp + 0x70], ebp
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x80]
call fcn.00401200
neg eax
sbb ecx, ecx
inc ecx
cmp ebp, dword [esp + 0x40]
sbb eax, eax
neg eax
test eax, ecx
je 0x4038b5
mov edi, dword [esp + 0x84]
mov ecx, edi
mov ebx, dword [esp + 0x80]
and ecx, 0x1f
mov edx, ebx
shl edx, cl
mov ecx, esi
shr edx, cl
mov ecx, dword [esp + 0x14]
movzx eax, byte [ecx + edx*2 + 1]
add edi, eax
movzx eax, byte [ecx + edx*2]
mov ecx, edi
mov byte [ebp], al
mov eax, dword [esp + 0x14]
and ecx, 0x1f
shl ebx, cl
mov ecx, esi
shr ebx, cl
lea ecx, [esp + 0x80]
movzx eax, byte [eax + ebx*2 + 1]
add eax, edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x84], eax
movzx eax, byte [edi + ebx*2]
mov byte [ebp + 1], al
add ebp, 2
call fcn.00401200
neg eax
sbb ecx, ecx
inc ecx
cmp ebp, dword [esp + 0x40]
sbb eax, eax
neg eax
test eax, ecx
jne 0x403840
lea ecx, [esp + 0x80]
call fcn.00401200
mov ebx, dword [esp + 0xa8]
neg eax
sbb ecx, ecx
inc ecx
cmp ebp, ebx
sbb eax, eax
neg eax
test eax, ecx
je 0x403931
nop word [eax + eax]
mov edi, dword [esp + 0x84]
mov ecx, edi
mov edx, dword [esp + 0x80]
and ecx, 0x1f
mov eax, dword [esp + 0x14]
shl edx, cl
mov ecx, esi
shr edx, cl
lea ecx, [esp + 0x80]
movzx eax, byte [eax + edx*2 + 1]
add edi, eax
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x14]
mov al, byte [edi + edx*2]
mov byte [ebp], al
inc ebp
call fcn.00401200
neg eax
sbb ecx, ecx
inc ecx
cmp ebp, ebx
sbb eax, eax
neg eax
test eax, ecx
jne 0x4038e0
cmp ebp, ebx
mov ebx, dword [esp + 0x84]
jae 0x403969
nop dword [eax]
mov edx, dword [esp + 0x80]
mov ecx, ebx
and ecx, 0x1f
shl edx, cl
mov ecx, esi
shr edx, cl
movzx eax, byte [edi + edx*2 + 1]
add ebx, eax
mov al, byte [edi + edx*2]
mov byte [ebp], al
inc ebp
cmp ebp, dword [esp + 0xa8]
jb 0x403940
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x50]
jne 0x403981
cmp dword [esp + 0x48], 0x20
jne 0x403981
mov edx, 1
jmp 0x403983
xor edx, edx
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x64]
jne 0x40399b
cmp dword [esp + 0x5c], 0x20
jne 0x40399b
mov esi, 1
jmp 0x40399d
xor esi, esi
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0x78]
jne 0x4039b5
cmp dword [esp + 0x70], 0x20
jne 0x4039b5
mov ecx, 1
jmp 0x4039b7
xor ecx, ecx
mov eax, dword [esp + 0x88]
cmp eax, dword [esp + 0x8c]
jne 0x4039d1
cmp ebx, 0x20
jne 0x4039d1
lea eax, [ebx - 0x1f]
jmp 0x4039d3
xor eax, eax
and eax, ecx
mov ecx, 0xffffffec
and eax, esi
test edx, eax
mov eax, dword [esp + 0xac]
cmove eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret