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

Disassembly:
sub esp, 0x70
mov eax, dword [0x415060]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
push esi
mov dword [esp + 0x24], eax
xor eax, eax
push edi
mov ebx, ecx
lea esi, [esp + 0x54]
mov edi, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], eax
call fcn.004023e0
test eax, eax
jne 0x402f70
mov eax, dword [esp + 0x58]
test eax, eax
ja 0x402a11
mov esi, dword [esp + 0x54]
cmp esi, 0x80000000
jae 0x402a11
test eax, eax
ja 0x402a11
cmp esi, 0x4000000
jb 0x402a29
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004080b5
add esp, 0x70
ret
cmp esi, 0x20
ja 0x402a11
test esi, esi
mov dword [ebx + 0x10], esi
jne 0x402b10
mov dword [ebx], esi
test esi, esi
jbe 0x402a5e
xor edi, edi
mov dword [esp + 0x18], esi
mov eax, dword [ebx]
lea ecx, [edi + eax + 0x10]
push ecx
call fcn.00401030
add esp, 4
add edi, 0x18
sub dword [esp + 0x18], 1
jne 0x402a45
xor eax, eax
cmp esi, eax
mov dword [esp + 0x1c], eax
jbe 0x402a11
mov dword [esp + 0x18], eax
lea esp, [esp]
mov ebx, dword [ebx]
add ebx, dword [esp + 0x18]
mov ecx, dword [ebp + 4]
test ecx, ecx
mov dword [esp + 0x20], ebx
je 0x402dc1
mov eax, dword [ebp]
add ecx, 0xffffffff
mov dword [ebp + 4], ecx
movzx edx, byte [eax]
add eax, 1
mov byte [esp + 0x13], dl
and edx, 0xf
mov dword [ebp], eax
mov edi, edx
mov esi, 0
jbe 0x402ac8
test ecx, ecx
je 0x402dc1
sub ecx, 1
mov dword [ebp + 4], ecx
mov dl, byte [eax]
mov byte [esp + esi + 0x6c], dl
add eax, 1
add esi, 1
cmp esi, edi
mov dword [ebp], eax
jb 0x402aa7
cmp edi, 8
ja 0x402a11
xor eax, eax
cmp edi, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
jbe 0x402b48
lea esi, [esp + edi + 0x6b]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
jmp 0x402af0
movzx eax, byte [esi]
cdq
mov ecx, ebx
call fcn.00408130
or dword [edi + 8], eax
or dword [edi + 0xc], edx
sub esi, 1
add ebx, 8
sub dword [esp + 0x2c], 1
jne 0x402af0
jmp 0x402b4c
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
lea ecx, [esi + esi*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push eax
call edx
add esp, 8
test eax, eax
mov dword [ebx], eax
jne 0x402a3b
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004080b5
add esp, 0x70
ret
mov edi, dword [esp + 0x20]
test byte [esp + 0x13], 0x10
je 0x402bfc
lea esi, [esp + 0x5c]
mov edi, ebp
call fcn.004023e0
test eax, eax
jne 0x402f70
mov ecx, dword [esp + 0x60]
test ecx, ecx
ja 0x402a11
mov eax, dword [esp + 0x5c]
jb 0x402b87
cmp eax, 0x80000000
jae 0x402a11
test ecx, ecx
ja 0x402a11
jb 0x402b9c
cmp eax, 0x4000000
jae 0x402a11
mov ebx, dword [esp + 0x20]
lea esi, [esp + 0x64]
mov dword [ebx], eax
call fcn.004023e0
test eax, eax
jne 0x402f70
mov ecx, dword [esp + 0x68]
test ecx, ecx
ja 0x402a11
mov eax, dword [esp + 0x64]
jb 0x402bd0
cmp eax, 0x80000000
jae 0x402a11
test ecx, ecx
ja 0x402a11
jb 0x402be5
cmp eax, 0x4000000
jae 0x402a11
cmp dword [ebx], 0x20
mov dword [ebx + 4], eax
ja 0x402a11
cmp eax, 0x20
ja 0x402a11
jmp 0x402c0d
mov ebx, dword [esp + 0x20]
mov dword [edi], 1
mov dword [edi + 4], 1
test byte [esp + 0x13], 0x20
je 0x402c60
xor eax, eax
lea esi, [esp + 0x4c]
mov edi, ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call fcn.004023e0
test eax, eax
jne 0x402f70
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x4c]
push eax
lea edi, [ebx + 0x10]
push esi
push edi
call fcn.00401050
add esp, 0xc
test eax, eax
je 0x402b30
mov edi, dword [edi]
mov eax, ebp
call fcn.00402360
test eax, eax
jne 0x402f70
test byte [esp + 0x13], 0x80
je 0x402d91
jmp 0x402c70
mov eax, dword [ebp + 4]
test eax, eax
je 0x402dc1
lea ecx, [eax - 1]
mov eax, dword [ebp]
mov dword [ebp + 4], ecx
mov bl, byte [eax]
mov dl, bl
and dl, 0xf
lea esi, [eax + 1]
movzx eax, dl
cdq
xor edi, edi
cmp edx, edi
mov dword [ebp], esi
ja 0x402dc1
jb 0x402ca9
cmp eax, ecx
ja 0x402dc1
sub ecx, eax
add esi, eax
test bl, 0x10
mov dword [ebp + 4], ecx
mov dword [ebp], esi
je 0x402d44
lea esi, [esp + 0x3c]
mov edi, ebp
call fcn.004023e0
test eax, eax
jne 0x402f70
mov ecx, dword [esp + 0x40]
test ecx, ecx
ja 0x402a11
mov eax, dword [esp + 0x3c]
jb 0x402cec
cmp eax, 0x80000000
jae 0x402a11
test ecx, ecx
ja 0x402a11
jb 0x402d01
cmp eax, 0x4000000
jae 0x402a11
lea esi, [esp + 0x30]
call fcn.004023e0
test eax, eax
jne 0x402f70
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x402a11
mov eax, dword [esp + 0x30]
jb 0x402d2f
cmp eax, 0x80000000
jae 0x402a11
test ecx, ecx
ja 0x402a11
jb 0x402d44
cmp eax, 0x4000000
jae 0x402a11
test bl, 0x20
je 0x402d85
xor eax, eax
lea esi, [esp + 0x44]
mov edi, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.004023e0
test eax, eax
jne 0x402f70
mov edx, dword [esp + 0x48]
mov eax, dword [ebp + 4]
xor ecx, ecx
cmp edx, ecx
ja 0x402dc1
mov ecx, dword [esp + 0x44]
jb 0x402d7d
cmp ecx, eax
ja 0x402dc1
sub eax, ecx
add dword [ebp], ecx
mov dword [ebp + 4], eax
test bl, bl
js 0x402c70
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
add dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add eax, dword [ebx + 4]
add dword [esp + 0x18], 0x18
add ecx, 1
cmp ecx, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
jae 0x402dd9
mov ebx, dword [esp + 0x24]
jmp 0x402a70
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004080b5
add esp, 0x70
ret
xor ebx, ebx
cmp eax, ebx
je 0x402a11
mov edi, dword [esp + 0x24]
lea esi, [eax - 1]
cmp esi, ebx
mov dword [esp + 0x14], esi
mov dword [edi + 0x14], esi
jne 0x402dfa
mov dword [edi + 4], ebx
jmp 0x402e19
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
lea ecx, [esi*8]
push ecx
push eax
call edx
add esp, 8
cmp eax, ebx
mov dword [edi + 4], eax
je 0x402b30
cmp esi, ebx
mov dword [esp + 0x1c], ebx
jbe 0x402ed5
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x1c]
lea esi, [esp + 0x30]
mov edi, ebp
lea ebx, [ecx + edx*8]
call fcn.004023e0
test eax, eax
jne 0x402f70
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x402a11
mov eax, dword [esp + 0x30]
jb 0x402e63
cmp eax, 0x80000000
jae 0x402a11
test ecx, ecx
ja 0x402a11
jb 0x402e78
cmp eax, 0x4000000
jae 0x402a11
lea esi, [esp + 0x3c]
mov dword [ebx], eax
call fcn.004023e0
test eax, eax
jne 0x402f70
mov ecx, dword [esp + 0x40]
test ecx, ecx
ja 0x402a11
mov eax, dword [esp + 0x3c]
jb 0x402ea8
cmp eax, 0x80000000
jae 0x402a11
test ecx, ecx
ja 0x402a11
jb 0x402ebd
cmp eax, 0x4000000
jae 0x402a11
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jb 0x402e25
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
cmp ebx, eax
jb 0x402a11
mov edi, dword [esp + 0x24]
mov esi, ebx
sub esi, eax
mov dword [esp + 0x2c], esi
mov dword [edi + 0x18], esi
jne 0x402f83
mov dword [edi + 8], 0
xor ebx, ebx
test esi, esi
jbe 0x402f6e
jmp 0x402f10
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 8]
lea ecx, [eax + ebx*4]
lea esi, [esp + 0x30]
mov edi, ebp
mov dword [esp + 0x14], ecx
call fcn.004023e0
test eax, eax
jne 0x402f70
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x402a11
mov eax, dword [esp + 0x30]
jb 0x402f4a
cmp eax, 0x80000000
jae 0x402a11
test ecx, ecx
ja 0x402a11
jb 0x402f5f
cmp eax, 0x4000000
jae 0x402a11
mov edx, dword [esp + 0x14]
add ebx, 1
cmp ebx, dword [esp + 0x2c]
mov dword [edx], eax
jb 0x402f10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004080b5
add esp, 0x70
ret
lea eax, [esi*4]
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push eax
call ecx
add esp, 8
test eax, eax
mov dword [edi + 8], eax
je 0x402b30
cmp esi, 1
jne 0x402f01
xor esi, esi
test ebx, ebx
jbe 0x402fdb
mov ebp, dword [edi + 0x14]
xor ecx, ecx
test ebp, ebp
jbe 0x402fdb
mov edx, dword [edi + 4]
lea ecx, [ecx]
cmp dword [edx], esi
je 0x402fd0
add ecx, 1
add edx, 8
cmp ecx, ebp
jb 0x402fc0
jmp 0x402fdb
test ecx, ecx
jl 0x402fdb
add esi, 1
cmp esi, ebx
jb 0x402fb4
cmp esi, ebx
je 0x402a11
mov ecx, dword [esp + 0x7c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004080b5
add esp, 0x70
ret