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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebx, dword [eax + 8]
mov dword [esp + 0x28], eax
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], ecx
add eax, eax
mov dword [esp + 0x20], eax
fild qword [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0
fild qword [esp + 0x20]
fdivp st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fld dword [0x42272c]
fxch st(1)
fucompi st(1)
fstp st(0)
ja 0x40a160
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [esi + 0x3c]
movzx ecx, byte [esi + 0xd]
mov ebx, dword [esi + 8]
and ebx, eax
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
lea edi, [ebx*4]
cmovne eax, edx
and eax, 0xffffff
or eax, 0x1000000
mov ebp, eax
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + ebx*4]
cmp ebp, ecx
jae 0x409fc5
lea edi, [ebx*4 + 8]
jmp 0x409fb2
mov edi, edx
mov ecx, dword [eax + edi]
add ebp, 0x1000000
add ebx, 2
lea edx, [edi + 8]
cmp ecx, ebp
ja 0x409fb0
cmp ebp, ecx
jne 0x40a630
mov esi, ebp
lea edi, [ebx*4 + 8]
mov dword [esp + 0x20], ebx
mov ebp, dword [esp + 0x28]
jmp 0x409ffa
mov eax, dword [ebp + 0x30]
lea edx, [esi + 0x1000000]
add dword [esp + 0x20], 2
lea ecx, [edi + 8]
mov esi, dword [eax + edi]
cmp esi, edx
jne 0x40a050
mov edi, ecx
mov ebx, dword [eax + edi - 4]
mov eax, dword [ebp + 0x10]
imul eax, ebx
add eax, dword [ebp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [ebp + 0x40]
test al, al
je 0x409fe0
mov eax, dword [esp + 0x28]
mov esi, ebx
imul esi, dword [eax + 0x14]
add esi, dword [eax + 0x2c]
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x20]
mov esi, edx
mov eax, dword [esp + 0x28]
mov ebp, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
cmp ebp, eax
je 0x40a540
mov edx, dword [esp + 0x28]
mov ebp, dword [edx + 0x20]
mov ecx, edx
test ebp, ebp
je 0x40a4d0
mov edx, dword [edx + 0x24]
mov dword [esp + 0x20], eax
mov byte [edx + eax], 0
mov edx, ecx
mov ecx, dword [ecx + 0x2c]
mov edx, dword [edx + 0x1c]
mov ebp, dword [esp + 0x28]
add edx, 1
mov dword [ebp + 0x1c], edx
mov edx, dword [ebp + 0x14]
imul edx, eax
add ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 4], edx
imul eax, dword [ebp + 0x10]
add eax, dword [ebp + 0x28]
mov dword [esp], eax
call dword [ebp + 0x44]
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x30]
mov edx, eax
mov dword [esp + 0x1c], eax
add eax, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40a11b
lea edi, [ebx + 2]
mov ebp, dword [esp + 0x20]
lea edx, [edx + edi*4]
jmp 0x40a0f3
add edi, 2
cmp ecx, esi
jae 0x40a103
mov dword [eax], esi
mov eax, dword [edx - 4]
mov esi, ecx
mov dword [edx - 4], ebp
mov ebp, eax
mov eax, edx
add edx, 8
mov ecx, dword [edx - 8]
add esi, 0x1000000
mov ebx, edi
test ecx, ecx
jne 0x40a0f0
mov dword [esp + 0x20], ebp
mov dword [eax], esi
mov edi, dword [esp + 0x20]
shr esi, 0x18
mov eax, dword [esp + 0x1c]
sub esi, 1
mov dword [eax + ebx*4 + 4], edi
mov eax, dword [esp + 0x28]
lea ebx, [esi + esi]
cmp ebx, dword [eax + 0x34]
je 0x40a4de
mov eax, dword [esp + 0x28]
add dword [eax + 0x4c], 1
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x28]
lea eax, [ebx + ebx + 2]
cmp byte [esi + 0xc], 0
mov dword [esi + 8], eax
je 0x40a2c0
mov ecx, dword [esi + 0x34]
mov edi, dword [esi + 0x30]
lea eax, [eax + ecx + 2]
mov dword [esp + 0x2c], edi
shl eax, 2
test eax, eax
js 0x40a71e
mov edx, 0
je 0x40a1a8
mov edx, 1
call fcn.004194f0
mov esi, dword [esp + 0x28]
mov edx, eax
mov ecx, dword [esi + 0x34]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], 0
mov dword [eax + 0x30], edx
lea eax, [ebx + ecx]
mov dword [esp + 0x38], eax
nop
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x40a296
mov edi, dword [esp + 0x28]
mov edx, eax
shr edx, 0x18
lea edx, [edx + edx - 2]
mov ebx, dword [edi + 8]
movzx ecx, byte [edi + 0xd]
sub esi, edx
mov edx, ebx
shr edx, 1
and edx, esi
mov esi, eax
and eax, 0xffffff
shl esi, cl
or eax, 0x1000000
or esi, edx
and esi, ebx
mov ebx, dword [edi + 0x30]
lea ecx, [esi*4]
mov edi, ebx
mov dword [esp + 0x30], ebx
add ebx, ecx
mov edx, dword [ebx]
cmp eax, edx
jae 0x40a234
lea ecx, [edi + ecx + 8]
lea esi, [esi]
mov ebx, ecx
lea ecx, [ecx + 8]
mov edx, dword [ecx - 8]
add eax, 0x1000000
add esi, 2
cmp edx, eax
ja 0x40a220
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
test edx, edx
mov ebp, dword [edi + ecx*4 + 4]
je 0x40a276
lea edi, [esi + 2]
mov esi, dword [esp + 0x30]
lea ecx, [esi + edi*4]
jmp 0x40a253
add edi, 2
cmp eax, edx
jbe 0x40a263
mov dword [ebx], eax
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebp
mov ebp, eax
mov eax, edx
mov ebx, ecx
add ecx, 8
mov edx, dword [ecx - 8]
add eax, 0x1000000
mov esi, edi
test edx, edx
jne 0x40a250
mov dword [ebx], eax
mov ebx, dword [esp + 0x30]
shr eax, 0x18
mov dword [ebx + esi*4 + 4], ebp
lea ebx, [eax - 1]
mov eax, dword [esp + 0x28]
lea esi, [ebx + ebx]
cmp esi, dword [eax + 0x34]
je 0x40a440
add dword [esp + 0x20], 2
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x38]
jbe 0x40a1c0
mov eax, dword [esp + 0x28]
sub byte [eax + 0xc], 1
jmp 0x409f5a
add eax, dword [esi + 0x34]
add byte [esi + 0xd], 0x10
mov byte [esi + 0xc], 0x10
lea ebx, [eax*4 + 8]
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call fcn.0040dc30
test eax, eax
je 0x40a6b2
mov esi, dword [esp + 0x28]
mov dword [esi + 0x30], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x1c]
test eax, eax
jle 0x409f5a
mov ebx, esi
mov dword [esp + 0x20], 0
mov ebp, dword [ebx + 0x20]
test ebp, ebp
je 0x40a42e
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebx + 0x24]
mov esi, dword [esp + 0x20]
cmp byte [edx + esi], 0
jne 0x40a412
mov eax, esi
mov dword [esp + 0x30], esi
imul eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [ebx + 0x3c]
movzx ecx, byte [ebx + 0xd]
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x30]
and esi, eax
mov dword [esp + 0x2c], edi
lea edi, [edi + esi*4]
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
cmovne eax, edx
mov edx, dword [edi]
and eax, 0xffffff
or eax, 0x1000000
cmp eax, edx
jae 0x40a39e
mov edi, dword [esp + 0x2c]
lea ecx, [edi + esi*4 + 8]
mov edi, ecx
lea ecx, [ecx + 8]
mov edx, dword [ecx - 8]
add eax, 0x1000000
add esi, 2
cmp edx, eax
ja 0x40a38a
test edx, edx
je 0x40a3ee
lea ebp, [esi + 2]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x30]
lea ecx, [esi + ebp*4]
jmp 0x40a3c3
add ebp, 2
cmp edx, eax
jae 0x40a3d3
mov dword [edi], eax
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebx
mov ebx, eax
mov eax, edx
mov edi, ecx
add ecx, 8
mov edx, dword [ecx - 8]
add eax, 0x1000000
mov esi, ebp
test edx, edx
jne 0x40a3c0
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x38]
mov dword [edi], eax
mov ecx, dword [esp + 0x30]
shr eax, 0x18
mov edi, dword [esp + 0x2c]
lea ebp, [eax - 1]
mov dword [edi + esi*4 + 4], ecx
lea esi, [ebp + ebp]
cmp esi, dword [ebx + 0x34]
je 0x40a5cd
mov eax, dword [ebx + 0x1c]
add dword [esp + 0x20], 1
mov edi, dword [esp + 0x20]
cmp edi, eax
jge 0x409f5a
mov ebp, dword [ebx + 0x20]
test ebp, ebp
jne 0x40a330
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
jmp 0x40a347
mov ebp, dword [eax + 8]
mov edi, eax
lea eax, [esi + 4]
mov dword [edi + 0x34], eax
lea edi, [ebp + eax + 2]
mov eax, dword [esp + 0x30]
shl edi, 2
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040dc30
test eax, eax
je 0x40a6a0
mov esi, dword [esp + 0x28]
cmp ebx, 0xfc
mov dword [esi + 0x30], eax
lea eax, [eax + edi - 0x10]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jne 0x40a296
mov eax, str.Probe_overflow
mov edx, 0xe
mov ecx, 1
mov dword [esp + 0x50], str.Probe_overflow
mov dword [esp + 0x54], 0xe
mov dword [esp + 0x58], 1
call fcn.0040e2d0
nop
lea esi, [esi]
mov ecx, dword [edx + 0x2c]
mov dword [esp + 0x20], eax
mov edx, eax
jmp 0x40a08c
mov ebp, dword [eax + 8]
mov edi, eax
lea eax, [ebx + 4]
mov dword [edi + 0x34], eax
lea edi, [ebp + eax + 2]
mov eax, dword [esp + 0x1c]
shl edi, 2
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040dc30
test eax, eax
je 0x40a733
mov ebx, dword [esp + 0x28]
cmp esi, 0xfc
mov dword [ebx + 0x30], eax
lea eax, [eax + edi - 0x10]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jne 0x40a13f
jmp 0x40a49c
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x30], ecx
mov ecx, ebp
mov dword [esp + 0x2c], edx
sar ecx, 3
add ecx, ebp
mov dword [eax + 0x18], ecx
mov eax, dword [eax + 0x28]
imul ecx, edx
mov dword [esp], eax
mov dword [esp + 0x38], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x20], ecx
call fcn.0040dc30
test eax, eax
mov ecx, dword [esp + 0x20]
je 0x40a723
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0x14]
mov dword [edx + 0x28], eax
imul ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x2c]
mov dword [esp], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x20], ecx
call fcn.0040dc30
test eax, eax
mov ecx, eax
je 0x40a745
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x20]
mov dword [eax + 0x2c], ecx
test edx, edx
jne 0x40a637
mov eax, dword [eax + 0x1c]
mov edx, eax
mov dword [esp + 0x20], eax
jmp 0x40a08c
mov edx, dword [ebx + 8]
lea eax, [esi + 4]
mov dword [ebx + 0x34], eax
lea edi, [edx + eax + 2]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], edx
shl edi, 2
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040dc30
test eax, eax
mov edx, dword [esp + 0x30]
je 0x40a68e
mov dword [ebx + 0x30], eax
lea eax, [eax + edi - 0x10]
cmp ebp, 0xfc
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jne 0x40a40f
jmp 0x40a49c
mov esi, ebp
jmp 0x40a056
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
call fcn.0040dc30
test eax, eax
mov ecx, dword [esp + 0x2c]
je 0x40a759
mov ebp, dword [esp + 0x28]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov dword [ebp + 0x24], eax
mov dword [esp + 4], 0
mov dword [esp + 0x20], edx
add eax, ecx
sub edx, ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x1c]
jmp 0x40a068
lea edx, [esi + edx + 2]
mov eax, dword [esp + 0x2c]
mov ecx, edi
shl edx, 2
call fcn.0041a740
lea edx, [esi + ebp + 2]
mov eax, dword [esp + 0x30]
mov ecx, edi
shl edx, 2
call fcn.0041a740
lea edi, [esp + 0x50]
mov ecx, 0x10
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x60], ebx
sar ebx, 0x1f
mov dword [esp + 0x50], str.realloc_
mov dword [esp + 0x54], 8
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 0xfe09
mov dword [esp + 0x64], ebx
mov dword [esp + 0x70], 0x42270a
mov dword [esp + 0x74], 8
mov dword [esp + 0x78], 1
call fcn.00419690
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
call fcn.0040e2d0
call fcn.0041d8e0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
imul edx, ebp
call fcn.0041a740
lea edx, [ebx + ebp + 2]
mov eax, dword [esp + 0x1c]
mov ecx, edi
shl edx, 2
call fcn.0041a740
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
imul edx, ebp
call fcn.0041a740
mov eax, dword [esp + 0x20]
mov edx, ebp
call fcn.0041a740
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop