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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
mov esi, ecx
mov ecx, dword [esp + 0x5c]
mov eax, edi
or eax, ecx
mov dword [esp + 0x4c], esi
mov ebp, edx
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x54]
mov dword [esp + 0x10], edx
mov dword [esp + 0x34], edx
jne 0x40a0ef
xor ecx, ecx
mov eax, ebp
test edx, edx
setne cl
sub eax, esi
add ecx, 5
add ecx, edx
cmp eax, ecx
jge 0x40a0c0
mov edx, 0x84
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov byte [esi], 0x30
inc esi
test edx, edx
je 0x40a0dc
push edx
mov byte [esi], 0x2e
inc esi
push 0x30
push esi
call fcn.004c7d50
add esp, 0xc
add esi, dword [esp + 0x10]
mov dword [esi], 0x30302b65
lea eax, [esi + 4]
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ebx, ecx
inc edx
and ebx, 0xfffff
shr ecx, 0x14
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edx
test ecx, ecx
jne 0x40a121
mov eax, 0xfffffbce
mov dword [esp + 0x14], ecx
xor ebx, ebx
mov dword [esp + 0x18], eax
xor edi, edi
mov dword [esp + 0x58], ecx
jmp 0x40a376
lea eax, [ecx - 0x433]
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], eax
or ebx, 0x100000
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 0x18], edx
xor eax, eax
mov edx, dword [esp + 0x30]
xor edi, edi
mov dword [esp + 0x28], ebx
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffcc
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x58], eax
jl 0x40a323
mov ecx, dword [esp + 0x24]
test ecx, ecx
jns 0x40a185
lea eax, [ebx + 0x78]
mov dword [esp + 0x2c], 1
jmp 0x40a1dd
add ecx, 0xf
shr ecx, 4
mov eax, ecx
mov dword [esp + 0x3c], ecx
imul ecx, ecx, 0x134410
shl eax, 4
add eax, 0x78
mov dword [esp + 0x38], eax
mov eax, 0x38e38e39
shr ecx, 0x12
add ecx, 0x19
mul ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
shr edx, 1
sub edx, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
js 0x40a30b
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x30]
sub eax, ecx
mov edx, dword [esp + 0x28]
add eax, 8
mov dword [esp + 0x40], eax
mov eax, ebx
shld edx, eax, 8
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
shl eax, 8
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ecx
lea eax, [edx + edx*8]
mov dword [esp + 0x30], eax
movzx eax, word [edi*2 + 0x53d670]
add eax, edx
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x502da8]
mov dword [esp + 0x24], eax
push dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov ecx, eax
push dword [esp + 0x3c]
call fcn.00409c80
mov ecx, dword [esp + 0x1c]
add esp, 8
mov ebx, eax
test ecx, ecx
je 0x40a280
mov edx, dword [esp + 0x10]
lea edi, [ecx + 9]
cmp edi, edx
ja 0x40a300
mov ecx, ebp
sub ecx, esi
cmp ecx, 9
jl 0x40a0b1
mov edx, esi
mov ecx, ebx
call fcn.0040ef30
add esi, 9
mov ecx, edi
xor edi, edi
jmp 0x40a2dc
xor edi, edi
test ebx, ebx
je 0x40a2e0
mov ecx, ebx
call fcn.00409b50
mov edx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x30]
dec eax
add eax, edi
mov dword [esp + 0x58], eax
cmp edi, edx
ja 0x40a31f
cmp dword [esp + 0x34], 0
jbe 0x40a2c9
mov ecx, ebp
lea eax, [edi + 1]
sub ecx, esi
cmp ecx, eax
jl 0x40a0b1
push esi
mov edx, ebx
mov ecx, edi
call fcn.00409fa0
add esp, 4
add esi, edi
jmp 0x40a2d7
cmp esi, ebp
je 0x40a0b1
mov al, bl
add al, 0x30
mov byte [esi], al
mov ecx, edi
xor edi, edi
inc esi
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x24], 0x18
dec eax
sub dword [esp + 0x30], 9
mov dword [esp + 0x2c], eax
test eax, eax
js 0x40a315
mov eax, dword [esp + 0x24]
jmp 0x40a232
mov eax, dword [esp + 0x58]
mov edi, 9
jmp 0x40a323
mov edx, dword [esp + 0x10]
xor eax, eax
xor ecx, ecx
jmp 0x40a323
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x10]
jmp 0x40a323
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x18], 0
mov dword [esp + 0x30], edi
jge 0x40a4d0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
test edi, edi
jne 0x40a4d0
mov eax, dword [esp + 0x18]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
neg eax
mov dword [esp + 0x3c], eax
movzx edx, byte [eax + 0x53f970]
cmp edx, 0xc8
jae 0x40a4d0
movzx ebx, word [eax*2 + 0x53d6f2]
lea edx, [edx + edx*8]
mov dword [esp + 0x40], ebx
movzx ebx, word [eax*2 + 0x53d6f0]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
lea eax, [ebx + ebx*2]
lea eax, [eax*8 + 0x50a068]
mov dword [esp + 0x24], eax
cmp ebx, dword [esp + 0x40]
jb 0x40a3cf
xor ebx, ebx
jmp 0x40a40a
mov ecx, dword [esp + 0x20]
mov edx, 8
mov eax, dword [esp + 0x1c]
sub edx, dword [esp + 0x3c]
shld eax, ecx, 8
shl edx, 4
sub edx, dword [esp + 0x18]
shl ecx, 8
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00409c80
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov edx, dword [esp + 0x34]
add esp, 8
mov eax, dword [esp + 0x24]
test ecx, ecx
je 0x40a442
lea eax, [ecx + 9]
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x10]
ja 0x40a4cb
mov eax, ebp
sub eax, esi
cmp eax, 9
jl 0x40a0b1
mov edx, esi
mov ecx, ebx
call fcn.0040ef30
mov ecx, dword [esp + 0x38]
add esi, 9
mov edx, dword [esp + 0x2c]
jmp 0x40a4a0
test ebx, ebx
je 0x40a4a8
mov ecx, ebx
call fcn.00409b50
mov edi, eax
mov eax, dword [esp + 0x10]
mov ecx, edi
sub ecx, edx
sub ecx, 0xa
mov dword [esp + 0x58], ecx
cmp edi, eax
ja 0x40a4d4
cmp dword [esp + 0x34], 0
jbe 0x40a48d
mov ecx, ebp
lea eax, [edi + 1]
sub ecx, esi
cmp ecx, eax
jl 0x40a0b1
push esi
mov edx, ebx
mov ecx, edi
call fcn.00409fa0
mov edx, dword [esp + 0x30]
add esp, 4
add esi, edi
jmp 0x40a49b
cmp esi, ebp
je 0x40a0b1
mov al, bl
add al, 0x30
mov byte [esi], al
mov ecx, edi
xor edi, edi
inc esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
inc dword [esp + 0x30]
add edx, 9
add eax, 0x18
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], eax
cmp edx, 0x708
jge 0x40a4d0
mov ebx, dword [esp + 0x30]
jmp 0x40a3c5
mov edi, 9
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x14]
mov edx, edi
neg edx
mov dword [esp + 0x2c], eax
sbb edx, edx
and edx, ebx
mov dword [esp + 0x30], edx
xor edx, edx
mov ebx, dword [esp + 0x30]
cmp edi, eax
jbe 0x40a5ab
sub edi, eax
mov eax, ebx
je 0x40a5ab
mov eax, 0xcccccccd
mov ecx, ebx
mul ebx
shr edx, 3
mov ebx, edx
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
mov dword [esp + 0x40], ecx
sub edi, 1
jne 0x40a500
cmp ecx, 5
mov ecx, dword [esp + 0x58]
jne 0x40a5a7
mov eax, dword [esp + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x10], eax
neg ecx
test ecx, ecx
jle 0x40a574
cmp ecx, 0x3c
jge 0x40a56c
lea eax, [edi + 1]
xor edx, edx
call fcn.004f5620
mov edi, dword [esp + 0x1c]
add eax, 0xffffffff
adc edx, 0xffffffff
and eax, dword [esp + 0x20]
and edx, edi
or eax, edx
mov eax, dword [esp + 0x10]
je 0x40a578
xor cl, cl
jmp 0x40a57a
mov edi, dword [esp + 0x1c]
xor cl, cl
jmp 0x40a57a
mov edi, dword [esp + 0x1c]
mov cl, 1
test eax, eax
jns 0x40a5a1
test cl, cl
je 0x40a59f
neg eax
push edi
push dword [esp + 0x24]
mov ecx, eax
call fcn.00409bc0
add esp, 8
test al, al
je 0x40a59f
mov cl, 1
movzx edi, cl
inc edi
jmp 0x40a5b6
xor cl, cl
movzx edi, cl
inc edi
jmp 0x40a5b6
mov edx, dword [esp + 0x40]
mov eax, 5
cmp eax, edx
sbb edi, edi
neg edi
cmp dword [esp + 0x14], 0
je 0x40a5f4
mov ecx, dword [esp + 0x2c]
mov eax, ebp
sub eax, esi
cmp eax, ecx
jl 0x40a0b1
test ebx, ebx
jne 0x40a5e3
push ecx
push 0x30
push esi
call fcn.004c7d50
add esp, 0xc
add esi, dword [esp + 0x2c]
jmp 0x40a630
push esi
mov edx, ebx
call fcn.0040efb0
add esp, 4
add esi, dword [esp + 0x2c]
jmp 0x40a630
cmp dword [esp + 0x34], 0
jbe 0x40a622
mov eax, dword [esp + 0x2c]
mov ecx, ebp
sub ecx, esi
inc eax
cmp ecx, eax
jl 0x40a0b1
mov ecx, dword [esp + 0x2c]
mov edx, ebx
push esi
call fcn.00409fa0
inc esi
add esp, 4
add esi, dword [esp + 0x2c]
jmp 0x40a630
cmp esi, ebp
je 0x40a0b1
add bl, 0x30
mov byte [esi], bl
inc esi
test edi, edi
je 0x40a672
mov edx, dword [esp + 0x4c]
mov eax, esi
cmp esi, edx
je 0x40a65a
mov edi, edi
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x2e
je 0x40a656
cmp cl, 0x39
jne 0x40a664
mov byte [eax], 0x30
mov edi, 1
cmp eax, edx
jne 0x40a640
mov ebx, dword [esp + 0x58]
mov byte [eax], 0x31
inc ebx
jmp 0x40a676
cmp edi, 1
je 0x40a66e
test cl, 1
je 0x40a672
inc cl
mov byte [eax], cl
mov ebx, dword [esp + 0x58]
mov eax, ebx
test ebx, ebx
jns 0x40a67e
neg ebx
xor edx, edx
mov ecx, ebp
cmp ebx, 0x64
setge dl
sub ecx, esi
add edx, 4
cmp ecx, edx
jl 0x40a0b1
test eax, eax
mov byte [esi], 0x65
sets al
lea eax, [eax*2 + 0x2b]
mov byte [esi + 1], al
cmp ebx, 0x64
jl 0x40a6e9
mov eax, 0x66666667
imul ebx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov ax, word [ecx*2 + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
mov word [esi + 2], ax
mov al, cl
shl cl, 2
add al, cl
add al, al
sub bl, al
add bl, 0x30
mov byte [esi + 4], bl
add esi, 5
mov eax, esi
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ax, word [ebx*2 + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
mov word [esi + 2], ax
add esi, 4
pop edi
mov eax, esi
xor edx, edx
pop esi
pop ebp
pop ebx
add esp, 0x40
ret