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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x130
mov esi, esp
mov dword [esi + 0x118], ebp
lea edi, [esi + 0x120]
mov dword [edi - 4], esp
xor eax, eax
dec eax
mov dword [edi + 8], eax
mov dword [edi + 4], 0x409760
mov ecx, dword fs:[0]
mov dword [edi], ecx
mov dword fs:[0], edi
mov dl, 0xff
lea ebx, [esi + 0x38]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea ecx, [esi + 0x17]
mov byte [ecx], dl
mov al, 0xff
lea edx, [esi + 0x16]
mov byte [edx], al
pcmpeqd xmm0, xmm0
lea eax, [esi + 0x50]
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
push edx
push ecx
push eax
push dword [ebp + 0x14]
mov dword [esi + 0x18], ebx
push ebx
call fcn.00403eb0
add esp, 0x14
xor eax, eax
lea ecx, [esi + 0x28]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [edi + 8], eax
mov dword [esi + 4], ecx
push eax
push 0xa
call fcn.0040b1c0
cmp byte [esi + 0x33], 0
jns 0x403a7f
mov eax, dword [esi + 0x28]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x24]
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
lea ebx, [esi + 0x78]
push 0xa0
push 0xff
push ebx
call fcn.0040f7f0
add esp, 0xc
lea eax, [esi + 0x20]
mov dword [esi + 0x44], ebx
mov dword [eax], ebx
lea eax, [esi + 0x48]
mov dword [eax], 0
lea eax, [esi + 0xb]
mov byte [eax], 1
lea eax, [esi + 0x15]
mov byte [eax], 0x45
test edi, edi
je 0x403b92
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x403b73
mov eax, dword [esi + 0x10]
test eax, eax
mov dword [esi + 0xc], edi
jne 0x403cd0
xor ecx, ecx
test edi, edi
je 0x403b99
mov dword [esi + 0x10], ecx
movzx ecx, byte [esi + 0x33]
test cl, cl
jns 0x403afd
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 4]
add eax, ecx
cmp dword [esi + 0x24], eax
je 0x403c6c
mov cl, byte [esi + 0x16]
mov dl, byte [esi + 0x17]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x403cee
movzx eax, byte [eax]
movsx ecx, cl
movsx edx, dl
movsx eax, al
lea edi, [esi + 0x50]
push edi
lea edi, [esi + 0x48]
push edi
lea edi, [esi + 0x20]
push edi
lea edi, [esi + 0x78]
push edi
lea edi, [esi + 0x38]
push edi
push ecx
push edx
lea ecx, [esi + 0x24]
push ecx
push dword [esi + 4]
lea ecx, [esi + 0x15]
push ecx
lea ecx, [esi + 0xb]
push ecx
push eax
call fcn.00404070
add esp, 0x30
mov edi, dword [esi + 0xc]
test eax, eax
jne 0x403ba0
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x403d06
inc eax
mov dword [edi + 0xc], eax
jmp 0x403ac3
mov eax, dword [edi]
mov ecx, edi
mov dword [esi + 0xc], edi
call dword [eax + 0x20]
mov edx, dword [esi + 0xc]
xor edi, edi
cmp eax, 0xffffffff
je 0x403ad7
mov edi, edx
jmp 0x403ad7
xor edi, edi
jmp 0x403ad7
mov dword [esi + 0x10], 0
movzx eax, byte [esi + 0x43]
test al, al
jns 0x403bab
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x403bb9
cmp byte [esi + 0xb], 0
jne 0x403e1c
push dword [ebp + 0x18]
push dword [esi + 0x24]
push dword [esi + 4]
call fcn.00409130
add esp, 0xc
fstp dword [esi + 0x4c]
movd xmm0, dword [esi + 0x4c]
mov eax, dword [ebp + 0x1c]
movd dword [eax], xmm0
mov bl, byte [esi + 0x43]
test bl, bl
mov edx, dword [esi + 0x3c]
movzx ecx, bl
mov eax, ecx
cmovs eax, edx
test eax, eax
jne 0x403d2a
mov edx, dword [esi + 0xc]
test edx, edx
je 0x403c65
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
mov eax, dword [ebp + 8]
je 0x403c45
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x403df4
test edx, edx
jne 0x403c18
mov ecx, dword [ebp + 0x18]
or byte [ecx], 2
mov dword [eax], edx
cmp byte [esi + 0x33], 0
js 0x403cbd
cmp byte [esi + 0x43], 0
js 0x403e09
mov ecx, dword [esi + 0x120]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov eax, dword [edx]
mov eax, dword [eax + 0x20]
mov dword [esi + 0x128], 0
mov ecx, edx
call eax
mov edx, dword [esi + 0xc]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edx, ecx
jmp 0x403c67
xor edx, edx
mov eax, dword [ebp + 8]
jmp 0x403c03
mov dword [esi + 0x1c], ecx
lea eax, [ecx + ecx]
lea ecx, [esi + 0x28]
push 0
push eax
call fcn.0040b1c0
mov eax, 0x7fffffff
lea ecx, [esi + 0x28]
and eax, dword [ecx + 8]
dec eax
cmp byte [ecx + 0xb], 0
mov edx, 0xa
cmovs edx, eax
mov dword [esi + 4], ecx
push 0
push edx
call fcn.0040b1c0
mov edi, dword [esi + 0xc]
cmp byte [esi + 0x33], 0
jns 0x403caf
mov eax, dword [esi + 0x28]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 4]
mov dword [esi + 0x24], eax
jmp 0x403b0b
push dword [esi + 0x28]
call fcn.0040bae0
mov eax, dword [ebp + 8]
add esp, 4
jmp 0x403c24
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x10]
cmp eax, dword [ecx + 0x10]
mov ecx, dword [esi + 0x10]
je 0x403d15
test edi, edi
je 0x403aef
jmp 0x403ba0
mov byte [esi + 0x14], dl
mov byte [esi + 0x1c], cl
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
mov cl, byte [esi + 0x1c]
mov dl, byte [esi + 0x14]
jmp 0x403b20
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
mov edi, dword [esi + 0xc]
jmp 0x403ac3
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, dword [esi + 0xc]
cmp eax, 0xffffffff
mov ecx, dword [esi + 0x10]
jne 0x403ce1
jmp 0x403ae5
mov eax, dword [esi + 0x20]
mov dword [esi + 0x1c], eax
lea edi, [esi + 0x78]
sub eax, edi
cmp eax, 5
jl 0x403bf1
mov eax, dword [esi + 0x1c]
lea edi, [eax - 4]
mov dword [esi + 4], edi
lea edi, [esi + 0x78]
cmp edi, eax
je 0x403d77
lea edi, [esi + 0x78]
cmp dword [esi + 4], edi
jbe 0x403d77
lea ecx, [esi + 0x78]
mov edx, dword [esi + 4]
mov edi, dword [ecx]
mov ebx, dword [edx]
mov dword [ecx], ebx
mov dword [edx], edi
add ecx, 4
add edx, 0xfffffffc
cmp ecx, edx
jb 0x403d5c
mov bl, byte [esi + 0x43]
mov edx, dword [esi + 0x3c]
movzx ecx, bl
test bl, bl
jns 0x403d83
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x18], ecx
mov ecx, edx
lea edx, [esi + 0x78]
cmp dword [esi + 4], edx
jbe 0x403dc5
add ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x18]
movzx edx, byte [edx]
mov ebx, edx
dec bl
cmp bl, 0x7d
ja 0x403da4
mov edi, dword [esi + 0x44]
cmp dword [edi], edx
jne 0x403de6
mov edx, ecx
mov edi, dword [esi + 0x18]
sub edx, edi
cmp edx, 1
lea edx, [edi + 1]
cmovg edi, edx
mov dword [esi + 0x18], edi
mov edx, dword [esi + 0x44]
add edx, 4
mov dword [esi + 0x44], edx
cmp edx, dword [esi + 4]
jb 0x403d8e
mov ecx, dword [esi + 0x18]
movzx ecx, byte [ecx]
mov edx, ecx
dec dl
cmp dl, 0x7d
ja 0x403bf1
mov eax, dword [esi + 4]
mov eax, dword [eax]
dec eax
cmp eax, ecx
jb 0x403bf1
mov eax, dword [ebp + 0x18]
mov dword [eax], 4
jmp 0x403bf1
mov edi, dword [ecx + 0xc]
cmp edi, dword [ecx + 0x10]
je 0x403e42
test edx, edx
jne 0x403c12
jmp 0x403c18
push dword [esi + 0x38]
call fcn.0040bae0
mov eax, dword [ebp + 8]
add esp, 4
jmp 0x403c2e
mov eax, dword [esi + 0x20]
mov ecx, eax
lea edx, [esi + 0x78]
sub ecx, edx
cmp ecx, 0x9f
jg 0x403bb9
mov ecx, dword [esi + 0x48]
lea edx, [eax + 4]
mov dword [esi + 0x20], edx
mov dword [eax], ecx
jmp 0x403bb9
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
mov dword [esi + 0x128], 0
mov dword [esi + 0xc], edx
call eax
mov edx, dword [esi + 0xc]
cmp eax, 0xffffffff
mov eax, dword [ebp + 8]
jne 0x403dfc
jmp 0x403c0e