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

Disassembly:
sub esp, 0x80
mov eax, dword [0x44a2b8]
xor eax, esp
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
push ebx
push ebp
push esi
push edi
mov edi, edx
xor ebp, ebp
mov ebx, ecx
lea esi, [esp + 0x58]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], ebp
call fcn.00402e30
cmp eax, ebp
jne 0x4039ac
mov eax, dword [esp + 0x5c]
cmp eax, ebp
ja 0x4034a3
mov esi, dword [esp + 0x58]
cmp esi, 0x80000000
jae 0x4034a3
cmp eax, ebp
ja 0x4034a3
cmp esi, 0x4000000
jb 0x4034ad
mov eax, 0x80004001
jmp 0x4039ac
cmp esi, ebp
mov dword [edi], esi
jne 0x403625
mov dword [edi + 4], ebp
cmp esi, ebp
jbe 0x4034d6
xor ecx, ecx
mov edx, esi
mov eax, dword [edi + 4]
lea eax, [ecx + eax + 0x10]
add ecx, 0x18
sub edx, 1
mov dword [eax], ebp
mov dword [eax + 4], ebp
jne 0x4034c2
cmp esi, ebp
mov dword [esp + 0x18], ebp
jbe 0x403836
mov dword [esp + 0x34], ebp
mov eax, dword [edi + 4]
add eax, dword [esp + 0x34]
mov esi, dword [ebx + 4]
cmp esi, ebp
mov dword [esp + 0x1c], eax
je 0x40382c
mov eax, dword [ebx]
add esi, 0xffffffff
mov dword [ebx + 4], esi
mov cl, byte [eax]
movzx edx, cl
add eax, 1
and edx, 0xf
mov byte [esp + 0x17], cl
mov dword [ebx], eax
mov ebp, edx
mov edi, 0
jbe 0x40353e
test esi, esi
je 0x40382c
sub esi, 1
mov dword [ebx + 4], esi
mov dl, byte [eax]
mov byte [esp + edi + 0x7c], dl
add eax, 1
add edi, 1
cmp edi, ebp
mov dword [ebx], eax
jb 0x40351e
cmp ebp, 8
ja 0x4034a3
mov eax, dword [esp + 0x1c]
xor edx, edx
cmp ebp, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
jbe 0x403585
mov dword [esp + 0x38], edx
lea edi, [esp + ebp + 0x7b]
mov esi, eax
movzx eax, byte [edi]
mov ecx, dword [esp + 0x38]
cdq
call fcn.0043a820
or dword [esi + 8], eax
or dword [esi + 0xc], edx
add dword [esp + 0x38], 8
sub edi, 1
sub ebp, 1
jne 0x403561
mov cl, byte [esp + 0x17]
test cl, 0x10
je 0x40364b
lea esi, [esp + 0x68]
call fcn.00402e30
xor ebp, ebp
cmp eax, ebp
jne 0x4039ac
mov ecx, dword [esp + 0x6c]
cmp ecx, ebp
ja 0x4034a3
mov eax, dword [esp + 0x68]
jb 0x4035be
cmp eax, 0x80000000
jae 0x4034a3
cmp ecx, ebp
ja 0x4034a3
jb 0x4035d3
cmp eax, 0x4000000
jae 0x4034a3
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x60]
mov dword [edi], eax
call fcn.00402e30
cmp eax, ebp
jne 0x4039ac
mov ecx, dword [esp + 0x64]
cmp ecx, ebp
ja 0x4034a3
mov eax, dword [esp + 0x60]
jb 0x403607
cmp eax, 0x80000000
jae 0x4034a3
cmp ecx, ebp
ja 0x4034a3
jb 0x40361c
cmp eax, 0x4000000
jae 0x4034a3
mov cl, byte [esp + 0x17]
mov dword [edi + 4], eax
jmp 0x40365e
lea ecx, [esi + esi*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
call dword [esp + 0x28]
add esp, 4
cmp eax, ebp
mov dword [edi + 4], eax
jne 0x4034ba
mov eax, 0x8007000e
jmp 0x4039ac
mov eax, dword [esp + 0x1c]
mov dword [eax], 1
mov dword [eax + 4], 1
xor ebp, ebp
test cl, 0x20
je 0x4036c2
lea esi, [esp + 0x50]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
call fcn.00402e30
cmp eax, ebp
jne 0x4039ac
mov edi, dword [esp + 0x50]
cmp edi, ebp
mov esi, dword [esp + 0x1c]
mov dword [esi + 0x10], edi
jne 0x403690
mov dword [esi + 0x14], ebp
jmp 0x4036a8
push edi
call dword [esp + 0x28]
xor ecx, ecx
add esp, 4
cmp eax, ebp
setne cl
mov dword [esi + 0x14], eax
mov eax, ecx
cmp eax, ebp
je 0x403641
mov edx, dword [esi + 0x14]
push edx
mov eax, ebx
call fcn.00402da0
add esp, 4
cmp eax, ebp
jne 0x4039ac
mov cl, byte [esp + 0x17]
test cl, cl
jns 0x4037fa
lea ebx, [ebx]
mov esi, dword [ebx + 4]
cmp esi, ebp
je 0x40382c
mov eax, dword [ebx]
add esi, 0xffffffff
lea edi, [eax + 1]
mov dword [ebx + 4], esi
mov cl, byte [eax]
mov al, cl
and al, 0xf
movzx eax, al
cdq
mov dword [esp + 0x78], edx
xor edx, edx
cmp dword [esp + 0x78], edx
mov byte [esp + 0x17], cl
mov dword [ebx], edi
ja 0x40382c
jb 0x403710
cmp eax, esi
ja 0x40382c
sub esi, eax
add edi, eax
test cl, 0x10
mov dword [ebx + 4], esi
mov dword [ebx], edi
je 0x4037b0
lea esi, [esp + 0x40]
call fcn.00402e30
xor ebp, ebp
cmp eax, ebp
jne 0x4039ac
mov ecx, dword [esp + 0x44]
cmp ecx, ebp
ja 0x4034a3
mov eax, dword [esp + 0x40]
jb 0x403752
cmp eax, 0x80000000
jae 0x4034a3
cmp ecx, ebp
ja 0x4034a3
jb 0x403767
cmp eax, 0x4000000
jae 0x4034a3
lea esi, [esp + 0x28]
call fcn.00402e30
cmp eax, ebp
jne 0x4039ac
mov ecx, dword [esp + 0x2c]
cmp ecx, ebp
ja 0x4034a3
mov eax, dword [esp + 0x28]
jb 0x403795
cmp eax, 0x80000000
jae 0x4034a3
cmp ecx, ebp
ja 0x4034a3
jb 0x4037aa
cmp eax, 0x4000000
jae 0x4034a3
mov cl, byte [esp + 0x17]
jmp 0x4037b2
xor ebp, ebp
test cl, 0x20
je 0x4037f2
lea esi, [esp + 0x48]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
call fcn.00402e30
cmp eax, ebp
jne 0x4039ac
mov edx, dword [esp + 0x4c]
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp edx, ecx
ja 0x40382c
mov ecx, dword [esp + 0x48]
jb 0x4037e7
cmp ecx, eax
ja 0x40382c
sub eax, ecx
add dword [ebx], ecx
mov cl, byte [esp + 0x17]
mov dword [ebx + 4], eax
test cl, cl
js 0x4036d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x18]
add dword [esp + 0x3c], ecx
add dword [esp + 0x30], edx
add dword [esp + 0x34], 0x18
add eax, 1
cmp eax, dword [esp + 0x58]
mov dword [esp + 0x18], eax
jae 0x403836
mov edi, dword [esp + 0x20]
xor ebp, ebp
jmp 0x4034e6
mov eax, 6
jmp 0x4039ac
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
add esi, 0xffffffff
mov dword [esp + 0x18], esi
mov dword [edi + 8], esi
jne 0x403853
mov dword [edi + 0xc], 0
jmp 0x40386d
lea eax, [esi*8]
push eax
call dword [esp + 0x28]
add esp, 4
test eax, eax
mov dword [edi + 0xc], eax
je 0x403641
xor edi, edi
test esi, esi
jbe 0x403923
jmp 0x403880
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0xc]
lea esi, [esp + 0x28]
lea ebp, [edx + edi*8]
call fcn.00402e30
test eax, eax
jne 0x4039ac
mov ecx, dword [esp + 0x2c]
test ecx, ecx
ja 0x4034a3
mov eax, dword [esp + 0x28]
jb 0x4038b8
cmp eax, 0x80000000
jae 0x4034a3
test ecx, ecx
ja 0x4034a3
jb 0x4038cd
cmp eax, 0x4000000
jae 0x4034a3
lea esi, [esp + 0x40]
mov dword [ebp], eax
call fcn.00402e30
test eax, eax
jne 0x4039ac
mov ecx, dword [esp + 0x44]
test ecx, ecx
ja 0x4034a3
mov eax, dword [esp + 0x40]
jb 0x4038fe
cmp eax, 0x80000000
jae 0x4034a3
test ecx, ecx
ja 0x4034a3
jb 0x403913
cmp eax, 0x4000000
jae 0x4034a3
add edi, 1
cmp edi, dword [esp + 0x18]
mov dword [ebp + 4], eax
jb 0x403880
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
mov ebp, edi
sub ebp, dword [esp + 0x18]
mov dword [esi + 0x10], ebp
jne 0x4039c5
mov dword [esi + 0x14], 0
xor edi, edi
test ebp, ebp
jbe 0x4039aa
jmp 0x403950
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x14]
lea eax, [edx + edi*4]
lea esi, [esp + 0x28]
mov dword [esp + 0x18], eax
call fcn.00402e30
test eax, eax
jne 0x4039ac
mov ecx, dword [esp + 0x2c]
test ecx, ecx
ja 0x4034a3
mov eax, dword [esp + 0x28]
jb 0x403988
cmp eax, 0x80000000
jae 0x4034a3
test ecx, ecx
ja 0x4034a3
jb 0x40399d
cmp eax, 0x4000000
jae 0x4034a3
mov ecx, dword [esp + 0x18]
add edi, 1
cmp edi, ebp
mov dword [ecx], eax
jb 0x403950
xor eax, eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424e88
add esp, 0x80
ret
lea eax, [ebp*4]
push eax
call dword [esp + 0x28]
add esp, 4
test eax, eax
mov dword [esi + 0x14], eax
je 0x403641
cmp ebp, 1
jne 0x403941
xor ebx, ebx
test edi, edi
jbe 0x4039aa
mov ebp, dword [esi + 8]
xor ecx, ecx
test ebp, ebp
jbe 0x403a0e
mov edx, dword [esi + 0xc]
lea ebx, [ebx]
cmp dword [edx], ebx
je 0x403a12
add ecx, 1
add edx, 8
cmp ecx, ebp
jb 0x403a00
mov dword [eax], ebx
jmp 0x4039aa
test ecx, ecx
jl 0x403a0e
add ebx, 1
cmp ebx, edi
jb 0x4039f1
jmp 0x4039aa