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

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, ecx
sub esp, 0x89c
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x8b0]
mov dword [esp + 0x40], edx
mov ebp, dword [esp + 0x8b4]
test eax, eax
jne 0x414198
mov edi, dword [esp + 0x44]
mov dword [esp + 4], 0x3cf0
mov ebx, 0xf
mov dword [esp], edi
call fcn.004136f0
mov dword [esp + 4], 0x3c
mov dword [esp], edi
mov dword [esp + 0x48], eax
call fcn.004136f0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 4], 0xc018
lea edi, [esp + 0x80]
mov dword [esp], eax
call fcn.004136f0
mov ecx, 0x40
mov dword [esp + 0x5c], eax
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [esp + 0x180]
mov ecx, 0x40
rep stosd dword es:[edi], eax
lea edi, [esp + 0x280]
mov ecx, 0x40
rep stosd dword es:[edi], eax
lea edi, [esp + 0x380]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x58]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msvcrt.dll_memset
test esi, esi
je 0x4138be
xor edx, edx
xor eax, eax
add eax, 1
add dword [edi + edx*4], 1
cmp esi, eax
je 0x4138b7
movzx ecx, byte [ebp + eax]
cmp byte [ebp + eax - 1], cl
je 0x4138a1
add edx, 1
cmp esi, eax
jne 0x4138a1
mov ebp, dword [esp + 0x8b0]
test ebp, ebp
je 0x41417d
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x8b0]
sub eax, dword [esp + 0x68]
mov esi, 0x40
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x78]
cmp eax, 0x40
cmovbe esi, eax
xor ebp, ebp
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x74]
lea esi, [esi]
lea edi, [ebx + 4]
mov ecx, ebx
xor eax, eax
mov dword [ebx], 0
mov dword [ebx + 0x3fc], 0
and edi, 0xfffffffc
fld dword [0x46abc0]
sub ecx, edi
add ecx, 0x400
shr ecx, 2
rep stosd dword es:[edi], eax
mov dword [ebx + 0x400], 0
fstp qword [ebx + 0x408]
mov edi, dword [edx + ebp*4]
test edi, edi
je 0x413999
mov edi, dword [esp + 0x40]
add edi, esi
lea esi, [esi]
movzx ecx, byte [edi + eax]
add eax, 1
add esi, 1
add dword [ebx + ecx*4], 1
mov dword [ebx + 0x400], eax
cmp dword [edx + ebp*4], eax
ja 0x413980
mov dword [esp], ebx
mov dword [esp + 0x30], edx
add ebx, 0x410
call fcn.00408880
fstp qword [ebx - 8]
mov dword [esp + ebp*4 + 0x180], ebp
mov dword [esp + ebp*4 + 0x280], ebp
mov dword [esp + ebp*4 + 0x80], 1
add ebp, 1
cmp dword [esp + 0x3c], ebp
mov edx, dword [esp + 0x30]
jne 0x413930
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], 0x800
mov dword [esp + 0x1c], 0x40
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x180]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x280]
mov dword [esp + 8], eax
lea eax, [esp + 0x80]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0043cc70
mov dword [esp + 0x30], eax
add eax, dword [esp + 0x70]
mov esi, dword [esp + 0x60]
cmp eax, esi
mov dword [esp + 0x3c], eax
jbe 0x413a7d
test esi, esi
jne 0x413cd2
mov esi, dword [esp + 0x3c]
imul eax, esi, 0x410
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.004136f0
mov dword [esp + 0x60], esi
mov ebx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00413720
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x64]
cmp eax, esi
jbe 0x413ac8
test esi, esi
jne 0x413d15
mov esi, dword [esp + 0x3c]
mov eax, esi
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.004136f0
mov dword [esp + 0x64], esi
mov ebx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00413720
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x413b3e
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x70], ebp
imul ebx, eax, 0x410
lea eax, [edi + eax*4]
add ebx, dword [esp + 0x48]
mov esi, eax
xor eax, eax
mov ebp, esi
nop
mov edx, dword [esp + eax*4 + 0x180]
mov edi, ebx
mov ecx, 0x104
add ebx, 0x410
imul esi, edx, 0x410
mov edx, dword [esp + edx*4 + 0x80]
add esi, dword [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + eax*4], edx
mov edx, dword [esp + eax*4 + 0x180]
mov dword [esp + edx*4 + 0x380], eax
add eax, 1
cmp dword [esp + 0x30], eax
jne 0x413af0
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x7c]
xor eax, eax
nop
lea esi, [esi]
mov edx, dword [esp + eax*4 + 0x280]
mov edi, dword [esp + edx*4 + 0x380]
add edi, ecx
mov dword [ebx + eax*4], edi
add eax, 1
cmp ebp, eax
jne 0x413b50
add dword [esp + 0x68], 0x40
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x68]
add dword [esp + 0x54], edi
add dword [esp + 0x7c], 0x100
add dword [esp + 0x78], 0x100
cmp dword [esp + 0x8b0], eax
ja 0x413905
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00413720
mov eax, dword [esp + 0x54]
mov edi, eax
shr edi, 1
imul edi, eax
shl eax, 6
cmp edi, eax
cmova edi, eax
lea ebx, [edi + 1]
cmp ebx, 0x801
ja 0x41413f
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x413d58
mov eax, dword [esp + 0x8b0]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.0043cc70
mov dword [esp + 4], esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x54], eax
mov dword [esp], esi
call fcn.00413720
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00413720
mov edx, dword [esp + 0x8b0]
test edx, edx
jne 0x41416e
mov esi, dword [esp + 0x44]
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00413720
mov eax, dword [esp + 0x48]
mov dword [esp], esi
xor esi, esi
mov dword [esp + 4], eax
call fcn.00413720
mov dword [esp + 0x3c], 0
mov eax, 1
mov edi, dword [esp + 0x8b8]
mov dword [edi + 4], esi
mov dword [edi], eax
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00413720
mov eax, dword [esp + 0x58]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00413720
mov eax, dword [esp + 0x4c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00413720
add esp, 0x89c
pop ebx
pop esi
pop edi
pop ebp
ret
add esi, esi
cmp eax, esi
ja 0x413cd2
imul eax, esi, 0x410
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.004136f0
mov ebx, eax
imul eax, dword [esp + 0x60], 0x410
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 0x60], esi
jmp 0x413a65
add esi, esi
cmp eax, esi
ja 0x413d15
lea eax, [esi*4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.004136f0
mov ebx, eax
mov eax, dword [esp + 0x64]
mov dword [esp], ebx
shl eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 0x64], esi
jmp 0x413ab0
mov eax, dword [esp + 0x54]
lea esi, [eax*4]
mov eax, dword [esp + 0x44]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004136f0
mov ebx, eax
xor eax, eax
mov dword [ebx + eax*4], eax
add eax, 1
cmp dword [esp + 0x54], eax
jne 0x413d77
mov eax, dword [esp + 0x8b0]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], edi
mov dword [esp + 4], ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.0043cc70
mov dword [esp + 4], edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x54], eax
mov dword [esp], edi
call fcn.00413720
mov dword [esp + 4], ebp
mov dword [esp], edi
call fcn.00413720
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004136f0
mov dword [esp + 0x3c], eax
add esi, eax
mov dword [eax], 0xffffffff
add eax, 4
cmp esi, eax
jne 0x413dfc
mov dword [esp + 0x50], 0
xor ebp, ebp
mov dword [esp + 0x5c], 0
lea edi, [esp + 0x480]
xor eax, eax
mov ecx, 0x100
mov esi, dword [esp + 0x58]
mov dword [esp + 0x880], 0
rep stosd dword es:[edi], eax
fld dword [0x46abc0]
mov eax, dword [esi + ebp*4]
fstp qword [esp + 0x888]
test eax, eax
je 0x413e82
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x40]
xor eax, eax
add edi, ecx
lea esi, [esi]
movzx edx, byte [edi + eax]
add eax, 1
add ecx, 1
mov dword [esp + 0x880], eax
add dword [esp + edx*4 + 0x480], 1
cmp dword [esi + ebp*4], eax
ja 0x413e60
mov dword [esp + 0x5c], ecx
test ebp, ebp
mov eax, dword [esp + 0x4c]
je 0x414134
mov eax, dword [eax + ebp*4 - 4]
mov dword [esp + 0x38], eax
imul eax, dword [esp + 0x38], 0x410
mov esi, dword [esp + 0x48]
add eax, esi
mov dword [esp + 4], eax
lea eax, [esp + 0x480]
mov dword [esp], eax
call fcn.0043d080
mov eax, dword [esp + 0x54]
fstp qword [esp + 0x30]
test eax, eax
je 0x413f0e
mov dword [esp + 0x60], ebp
xor edi, edi
mov ebp, esi
mov esi, eax
lea esi, [esi]
imul edx, dword [ebx + edi*4], 0x410
lea eax, [esp + 0x480]
mov dword [esp], eax
add edx, ebp
mov dword [esp + 4], edx
call fcn.0043d080
fld qword [esp + 0x30]
fucompi st(1)
jbe 0x413f01
mov eax, dword [ebx + edi*4]
fstp qword [esp + 0x30]
mov dword [esp + 0x38], eax
jmp 0x413f03
fstp st(0)
add edi, 1
cmp edi, esi
jne 0x413ed0
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x38]
mov dword [esi + ebp*4], eax
mov esi, dword [esp + 0x3c]
lea eax, [esi + eax*4]
cmp dword [eax], 0xffffffff
je 0x414030
add ebp, 1
cmp dword [esp + 0x8b0], ebp
jne 0x413e1b
mov esi, dword [esp + 0x44]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00413720
mov eax, dword [esp + 0x48]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00413720
mov eax, dword [esp + 0x8b8]
mov esi, dword [eax + 0x10]
cmp dword [esp + 0x8b0], esi
jbe 0x413fdc
test esi, esi
jne 0x414017
mov esi, dword [esp + 0x8b0]
mov eax, dword [esp + 0x44]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004136f0
mov ebx, eax
mov eax, dword [esp + 0x8b8]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x413fb5
mov edi, dword [esp + 0x8b8]
mov edx, dword [edi + 8]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x8b8]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00413720
mov eax, dword [esp + 0x8b8]
mov dword [eax + 8], ebx
mov dword [eax + 0x10], esi
mov eax, dword [esp + 0x8b8]
mov eax, dword [eax + 0x14]
cmp dword [esp + 0x8b0], eax
jbe 0x4140b1
test eax, eax
je 0x414042
mov ebx, eax
add ebx, ebx
cmp dword [esp + 0x8b0], ebx
ja 0x413ff9
xor esi, esi
test ebx, ebx
je 0x41406d
lea eax, [ebx*4]
mov dword [esp + 0x6c], eax
jmp 0x414049
add esi, esi
cmp ebp, esi
jbe 0x413f7b
add esi, esi
cmp ebp, esi
ja 0x414017
jmp 0x413f7b
mov edi, dword [esp + 0x50]
mov dword [eax], edi
lea eax, [edi + 1]
mov dword [esp + 0x50], eax
jmp 0x413f29
mov ebx, dword [esp + 0x8b0]
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.004136f0
mov esi, eax
mov eax, dword [esp + 0x8b8]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x41408a
mov edi, dword [esp + 0x8b8]
shl eax, 2
mov edx, dword [edi + 0xc]
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x8b8]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00413720
mov eax, dword [esp + 0x8b8]
mov dword [eax + 0xc], esi
mov dword [eax + 0x14], ebx
mov ebp, dword [esp + 0x8b8]
xor edi, edi
xor esi, esi
xor ebx, ebx
xor eax, eax
mov edx, dword [esp + 0x58]
mov ecx, dword [edx + eax*4]
add eax, 1
add ecx, ebx
cmp dword [esp + 0x8b0], eax
mov ebx, ecx
mov dword [esp + 0x30], ecx
je 0x414123
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + eax*4 - 4]
cmp edx, dword [ecx + eax*4]
je 0x4140c0
mov ecx, dword [esp + 0x3c]
mov ebx, dword [ebp + 8]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x30]
mov byte [ebx + esi], dl
mov ebx, dword [ebp + 0xc]
mov dword [ebx + esi*4], ecx
mov ecx, edi
cmp cl, dl
cmovb edi, edx
add esi, 1
cmp dword [esp + 0x8b0], eax
je 0x414116
xor ebx, ebx
jmp 0x4140c0
mov eax, edi
movzx eax, al
add eax, 1
jmp 0x413c87
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x8b0]
mov edx, dword [edx + ecx*4 - 4]
jmp 0x4140e8
mov eax, dword [eax]
mov dword [esp + 0x38], eax
jmp 0x413e96
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00413720
lea eax, [ebx + ebx*2]
mov dword [esp], esi
shl eax, 3
mov dword [esp + 4], eax
call fcn.004136f0
mov dword [esp + 0x5c], eax
jmp 0x413bce
mov dword [esp + 0x3c], 0
xor ebx, ebx
jmp 0x413e09
mov eax, dword [esp + 0x38]
xor edi, edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00413720
jmp 0x413bda
mov eax, dword [esp + 0x8b0]
mov ebx, dword [esp + 0x44]
shl eax, 2
mov dword [esp], ebx
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp + 0x6c], eax
call fcn.004136f0
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 0x4c], eax
call fcn.004136f0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x8b0]
lea ebx, [eax + 0x3f]
shl ebx, 4
shr ebx, 6
test ebx, ebx
jne 0x414224
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
cmp dword [esp + 0x8b0], 0x40
mov eax, 0x40
cmovbe eax, dword [esp + 0x8b0]
imul eax, eax, 0x410
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.004136f0
mov dword [esp + 0x38], eax
jmp 0x41382b
mov edi, dword [esp + 0x44]
imul eax, ebx, 0x410
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004136f0
mov dword [esp + 0x48], eax
lea eax, [ebx*4]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004136f0
mov dword [esp + 0x50], eax
jmp 0x4141f0