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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x47362c]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
xor eax, eax
mov ebx, ecx
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [ebx + 0x1c], eax
lea eax, [esp + 0xc]
push edi
push eax
mov dword [esp + 0x24], ebx
call fcn.00437ecd
pop ecx
lea eax, [esp + 0x10]
push eax
call fcn.00437da0
pop ecx
push 9
pop ecx
push 9
mov esi, eax
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x3c]
pop ecx
push dword [esp + 0x30]
lea esi, [esp + 0x28]
push dword [ebx + 4]
lea edi, [esp + 0x68]
push dword [ebx + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x40]
push 0
lea eax, [esp + 0x70]
call fcn.00403803
mov edi, eax
mov eax, dword [ebx]
mov esi, edx
mov edx, eax
and edx, 0xff
add esp, 0x10
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
cmp edx, 0x7f
jne 0x403ac8
cmp esi, dword [esp + 0x14]
jl 0x403ab4
jg 0x403aa0
cmp edi, dword [esp + 0x10]
jbe 0x403ab4
mov dword [ebx + 0x48], edi
sub edi, 0x15180
mov dword [ebx + 0x4c], esi
sbb esi, 0
jmp 0x403bc8
mov dword [ebx + 0x40], edi
add edi, 0x15180
mov dword [ebx + 0x44], esi
adc esi, 0
jmp 0x403bde
test eax, 0x1000000
je 0x403b87
push dword [esp + 0x38]
mov eax, dword [esp + 0x38]
movzx esi, byte [ebx + 2]
call fcn.00403841
pop ecx
mov ecx, eax
test esi, esi
jne 0x403aee
inc esi
jmp 0x403afb
cmp esi, ecx
jbe 0x403afb
xor edx, edx
div esi
sub ecx, edx
lea esi, [ecx + 1]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push esi
push dword [ebx + 4]
lea eax, [esp + 0x68]
push dword [ebx + 8]
push 0
call fcn.00403803
mov esi, edx
add esp, 0x10
mov edi, eax
cmp esi, dword [esp + 0x14]
jl 0x403b56
jg 0x403b2a
cmp edi, dword [esp + 0x10]
jbe 0x403b56
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x4c], esi
test eax, eax
jne 0x403b3d
push 0xb
pop eax
jmp 0x403b3e
dec eax
push dword [esp + 0x38]
call fcn.00403841
imul eax, eax, 0x15180
pop ecx
xor ecx, ecx
sub edi, eax
sbb esi, ecx
jmp 0x403bc8
push dword [esp + 0x38]
mov eax, dword [esp + 0x38]
inc eax
cdq
push 0xc
pop ecx
idiv ecx
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], esi
mov eax, edx
call fcn.00403841
imul eax, eax, 0x15180
pop ecx
xor ecx, ecx
add eax, edi
adc ecx, esi
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], ecx
jmp 0x403be4
call fcn.0040c65b
cmp eax, dword [esp + 0x78]
jle 0x403b98
sub eax, dword [esp + 0x78]
jmp 0x403b9f
sub eax, dword [esp + 0x78]
add eax, 7
imul eax, eax, 0x15180
add edi, eax
push 0
pop eax
adc esi, eax
cmp esi, dword [esp + 0x14]
jl 0x403bd0
jg 0x403bba
cmp edi, dword [esp + 0x10]
jbe 0x403bd0
mov dword [ebx + 0x48], edi
sub edi, 0x93a80
mov dword [ebx + 0x4c], esi
sbb esi, eax
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], esi
jmp 0x403be4
mov dword [ebx + 0x40], edi
add edi, 0x93a80
mov dword [ebx + 0x44], esi
adc esi, eax
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x48], edi
mov eax, dword [ebx + 0x48]
mov edx, dword [ebx]
and dword [ebx + 0x1c], 0
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x44]
sar edx, 8
and edx, 0xff
mov dword [ebx + 0x24], eax
call fcn.0040c65b
xor edi, edi
cmp eax, edi
jge 0x403c58
lea esi, [esp + 0x54]
call fcn.00410ddf
lea ecx, [esp + 0xf]
push ecx
lea edx, [esp + 0x4c]
mov ecx, eax
call fcn.00410e56
mov ecx, esi
call fcn.00410e39
movzx edx, byte [esp + 0xf]
neg edx
sbb edx, edx
and edx, dword [esp + 0x48]
mov dword [ebx], edx
and edx, 0xff00
call fcn.0040c65b
cmp eax, edi
jl 0x403d27
cmp eax, dword [esp + 0x3c]
jl 0x403c64
sub eax, dword [esp + 0x3c]
jmp 0x403c6b
sub eax, dword [esp + 0x3c]
add eax, 7
mov ecx, dword [esp + 0x18]
imul eax, eax, 0x15180
add ecx, eax
mov eax, dword [esp + 0x1c]
adc eax, edi
cmp eax, dword [esp + 0x14]
jl 0x403ca1
jg 0x403c8b
cmp ecx, dword [esp + 0x10]
jbe 0x403ca1
mov dword [ebx + 0x38], ecx
sub ecx, 0x93a80
mov dword [ebx + 0x3c], eax
sbb eax, edi
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x34], eax
jmp 0x403cb5
mov dword [ebx + 0x30], ecx
add ecx, 0x93a80
mov dword [ebx + 0x34], eax
adc eax, edi
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], eax
add ebx, 0x50
call fcn.004038b9
test eax, eax
je 0x403d27
mov esi, dword [ebx]
mov ebx, dword [ebx + 4]
mov eax, dword [esp + 0x20]
cmp ebx, dword [eax + 0x44]
jg 0x403cdb
jl 0x403cd6
cmp esi, dword [eax + 0x40]
jae 0x403cdb
xor edi, edi
inc edi
jmp 0x403cdd
xor edi, edi
mov edx, dword [eax + 0x34]
mov ecx, dword [eax + 0x30]
cmp ebx, edx
jg 0x403cf2
jl 0x403ced
cmp esi, ecx
jae 0x403cf2
xor esi, esi
inc esi
jmp 0x403cf4
xor esi, esi
test edi, edi
jne 0x403d27
test esi, esi
jne 0x403d0e
mov esi, dword [eax + 0x3c]
cmp esi, dword [eax + 0x4c]
jg 0x403d27
jl 0x403d0e
mov esi, dword [eax + 0x38]
cmp esi, dword [eax + 0x48]
jae 0x403d27
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x38]
mov dword [eax + 0x28], ecx
mov ecx, dword [eax + 0x3c]
mov dword [eax + 0x1c], 1
mov dword [eax + 0x24], edx
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x84]
pop edi
pop esi
xor eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.004363ed
mov esp, ebp
pop ebp
ret