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

Disassembly:
sub esp, 0x5ec
mov eax, dword [esp + 0x5f0]
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [eax]
lea ecx, [esp + 0x1c]
push esi
mov esi, dword [ebx + 4]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x28], ebp
call fcn.00408bb0
mov eax, dword [eax]
mov ecx, dword [ebx + 4]
cmp eax, ecx
mov dword [esp + 0x24], eax
je 0x4132ea
mov dx, word [esp + 0x20]
cmp dx, word [eax + 0x10]
jb 0x4132ea
lea eax, [esp + 0x24]
jmp 0x4132f2
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x20]
cmp dword [eax], esi
je 0x413aa9
push edi
mov ecx, 0x52
lea esi, [esp + 0xbc]
lea edi, [esp + 0xc4]
mov word [esp + 0xbc], bp
lea eax, [esp + 0xbc]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.00408a80
mov edx, eax
lea esi, [esp + 0xbc]
lea edi, [esp + 0xc4]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0x90]
mov dword [esp + 0x44], ecx
mov ecx, 0x52
mov word [esp + 0xbc], bp
lea eax, [esp + 0xbc]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x44], edx
call fcn.00408a80
mov edx, eax
lea esi, [esp + 0xbc]
lea edi, [esp + 0xc4]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0x98]
mov dword [esp + 0x44], ecx
mov ecx, 0x52
mov word [esp + 0xbc], bp
lea eax, [esp + 0xbc]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x48], edx
call fcn.00408a80
mov edx, eax
lea esi, [esp + 0xbc]
lea edi, [esp + 0xc4]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0xa0]
mov dword [esp + 0x38], ecx
mov ecx, 0x52
mov word [esp + 0xbc], bp
lea eax, [esp + 0xbc]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x24], edx
call fcn.00408a80
mov edx, eax
mov dword [esp + 0x48], 0x3f800000
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x50], 0x3f800000
mov eax, dword [edx]
mov dword [esp + 0x54], 0x3f800000
mov dword [esp + 0x58], 0x3f800000
mov dword [esp + 0x5c], 0x3f800000
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0xa8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x60], 0x3f800000
mov dword [esp + 0x80], 0x3f800000
mov dword [esp + 0x84], 0x3f800000
mov dword [esp + 0x88], 0x3f800000
mov dword [esp + 0x8c], 0x3f800000
mov dword [esp + 0x90], 0x3f800000
mov dword [esp + 0x94], 0x3f800000
mov eax, dword [esp + 0x604]
mov edi, 1
cmp eax, edi
mov dword [esp + 0x98], 0x3f800000
mov dword [esp + 0x64], 0x3f800000
mov dword [esp + 0x68], 0x3f800000
mov dword [esp + 0x6c], 0x3f800000
mov dword [esp + 0x70], 0x3f800000
mov dword [esp + 0x74], 0x3f800000
mov dword [esp + 0x78], 0x3f800000
mov dword [esp + 0x7c], 0x3f800000
mov dword [esp + 0x28], edi
jle 0x4136fa
mov edx, dword [esp + 0x600]
mov dword [esp + 0x14], 0
add edx, 4
mov dword [esp + 0x24], edx
cmp dword [esp + 0x14], 0x18
jge 0x4136fa
mov eax, dword [esp + 0x24]
mov edi, dword [ebx + 4]
lea ecx, [esp + 0x10]
mov esi, dword [eax]
push ecx
mov ecx, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
call fcn.00409030
mov ecx, dword [ebx + 4]
mov dword [esp + 0x2c], eax
cmp eax, ecx
je 0x41353e
mov dx, word [esp + 0x10]
cmp dx, word [eax + 0x10]
jb 0x41353e
lea eax, [esp + 0x2c]
jmp 0x413546
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x34]
cmp dword [eax], edi
je 0x4136c4
mov word [esp + 0xbc], si
mov ecx, 0x52
lea esi, [esp + 0xbc]
lea edi, [esp + 0xc4]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x9c]
push eax
push ecx
mov ecx, ebx
call fcn.00408a80
mov edx, eax
mov eax, dword [edx]
mov eax, dword [eax + 0x94]
mov ecx, dword [edx + 4]
test eax, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], eax
je 0x4135ad
fild dword [esp + 0x10]
mov edx, dword [esp + 0x14]
fmul dword [0x62d570]
fstp dword [esp + edx + 0x4c]
mov ax, word [esp + 0x18]
mov ecx, 0x52
lea esi, [esp + 0xbc]
lea edi, [esp + 0x364]
mov word [esp + 0x35c], ax
lea edx, [esp + 0xac]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x35c]
push ecx
push edx
mov ecx, ebx
call fcn.00408a80
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x9c]
mov edx, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], eax
je 0x413614
fild dword [esp + 0x10]
mov eax, dword [esp + 0x14]
fmul dword [0x62d570]
fstp dword [esp + eax + 0x84]
mov cx, word [esp + 0x18]
lea esi, [esp + 0xbc]
mov word [esp + 0x20c], cx
mov ecx, 0x52
lea edi, [esp + 0x214]
lea edx, [esp + 0x20c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xa4]
push edx
push eax
mov ecx, ebx
call fcn.00408a80
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xa4]
mov edx, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], eax
je 0x413678
fild dword [esp + 0x10]
mov eax, dword [esp + 0x14]
fmul dword [0x62d570]
fstp dword [esp + eax + 0x68]
mov cx, word [esp + 0x18]
lea esi, [esp + 0xbc]
mov word [esp + 0x4ac], cx
mov ecx, 0x52
lea edi, [esp + 0x4b4]
lea edx, [esp + 0x4ac]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xb4]
push edx
push eax
mov ecx, ebx
call fcn.00408a80
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0xa8]
mov dword [esp + 0x30], edx
add ebp, ecx
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, 4
add esi, ecx
add edx, ecx
mov ecx, dword [esp + 0x604]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edx
mov edi, 1
jl 0x4134fa
fild dword [esp + 0x3c]
mov ecx, dword [esp + 0x604]
xor eax, eax
test ecx, ecx
fstp dword [esp + 0x18]
fild dword [esp + 0x40]
fstp dword [esp + 0x10]
fild dword [esp + 0x1c]
fstp dword [esp + 0x14]
jle 0x41374d
cmp eax, 7
jge 0x41374d
fld dword [esp + 0x18]
fmul dword [esp + eax*4 + 0x48]
inc eax
cmp eax, ecx
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fmul dword [esp + eax*4 + 0x7c]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fmul dword [esp + eax*4 + 0x60]
fstp dword [esp + 0x14]
jl 0x41371f
xor esi, esi
mov eax, dword [0xd122a4]
cmp eax, 2
jge 0x41375d
xor ecx, ecx
jmp 0x413760
lea ecx, [eax - 1]
cmp esi, ecx
jge 0x413841
push esi
mov ecx, 0xd122a0
call fcn.00595fe0
test eax, eax
je 0x41383b
push eax
mov ecx, 0x68ec20
call fcn.00413e40
mov ecx, eax
test ecx, ecx
je 0x41383b
mov ebx, dword [ecx + 0xa8]
mov edx, 0x64
sub edx, ebx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov ebx, dword [ecx + 0xac]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
mov dword [esp + 0x1c], edx
mov edx, 0x64
sub edx, ebx
mov ebx, dword [ecx + 0xb0]
imul edx
fild dword [esp + 0x1c]
fmul dword [esp + 0x18]
fstp dword [esp + 0x18]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
mov dword [esp + 0x1c], edx
mov edx, 0x64
sub edx, ebx
mov ebx, dword [ecx + 0xb4]
imul edx
fild dword [esp + 0x1c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
mov dword [esp + 0x1c], edx
mov edx, 0x64
sub edx, ebx
imul edx
fild dword [esp + 0x1c]
fmul dword [esp + 0x14]
fstp dword [esp + 0x14]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ebp, edx
inc esi
jmp 0x41374f
xor esi, esi
mov ebx, dword [0xd122ac]
xor ecx, ecx
cmp eax, ebx
mov ebx, dword [0xd122b0]
setl cl
dec ecx
and ecx, ebx
cmp esi, ecx
jge 0x41393f
push esi
mov ecx, 0xd122a0
call fcn.00596010
test eax, eax
je 0x413934
push eax
mov ecx, 0x68ec20
call fcn.00413e40
mov ecx, eax
test ecx, ecx
je 0x413934
mov ebx, dword [ecx + 0xa8]
mov edx, 0x64
sub edx, ebx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov ebx, dword [ecx + 0xac]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
mov dword [esp + 0x1c], edx
mov edx, 0x64
sub edx, ebx
mov ebx, dword [ecx + 0xb0]
imul edx
fild dword [esp + 0x1c]
fmul dword [esp + 0x18]
fstp dword [esp + 0x18]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
mov dword [esp + 0x1c], edx
mov edx, 0x64
sub edx, ebx
mov ebx, dword [ecx + 0xb4]
imul edx
fild dword [esp + 0x1c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
mov dword [esp + 0x1c], edx
mov edx, 0x64
sub edx, ebx
imul edx
fild dword [esp + 0x1c]
fmul dword [esp + 0x14]
fstp dword [esp + 0x14]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ebp, edx
mov eax, dword [0xd122a4]
inc esi
jmp 0x413843
xor esi, esi
xor edx, edx
cmp eax, edi
setg dl
test edx, edx
jle 0x413a39
push esi
mov ecx, 0xd122a0
call fcn.00596030
test eax, eax
je 0x413a23
push eax
mov ecx, 0x68ec20
call fcn.00413e40
mov ecx, eax
test ecx, ecx
je 0x413a23
mov ebx, dword [ecx + 0xa8]
mov edx, 0x64
sub edx, ebx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov ebx, dword [ecx + 0xac]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
mov dword [esp + 0x1c], edx
mov edx, 0x64
sub edx, ebx
mov ebx, dword [ecx + 0xb0]
imul edx
fild dword [esp + 0x1c]
fmul dword [esp + 0x18]
fstp dword [esp + 0x18]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
mov dword [esp + 0x1c], edx
mov edx, 0x64
sub edx, ebx
mov ebx, dword [ecx + 0xb4]
imul edx
fild dword [esp + 0x1c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
mov dword [esp + 0x1c], edx
mov edx, 0x64
sub edx, ebx
imul edx
fild dword [esp + 0x1c]
fmul dword [esp + 0x14]
fstp dword [esp + 0x14]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ebp, edx
mov ecx, dword [0xd122a4]
inc esi
xor edx, edx
cmp ecx, edi
setg dl
cmp esi, edx
jl 0x413950
fld dword [esp + 0x18]
call fcn.00613380
mov ecx, dword [0x6d6880]
sub ecx, eax
cmp ecx, edi
mov dword [0x6d6880], ecx
jge 0x413a5a
mov dword [0x6d6880], edi
fld dword [esp + 0x10]
call fcn.00613380
mov ecx, dword [0x6d6884]
sub ecx, eax
cmp ecx, edi
mov dword [0x6d6884], ecx
jge 0x413a7b
mov dword [0x6d6884], edi
fld dword [esp + 0x14]
call fcn.00613380
mov ecx, dword [0x6d6888]
sub ecx, eax
cmp ecx, edi
mov dword [0x6d6888], ecx
jge 0x413a9c
mov dword [0x6d6888], edi
mov eax, dword [0x6d68dc]
pop edi
sub eax, ebp
mov dword [0x6d68dc], eax
pop esi
pop ebp
pop ebx
add esp, 0x5ec
ret 8