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

Disassembly:
sub esp, 0x8ec
push ebx
push ebp
fild dword [esp + 0x908]
push esi
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x30]
mov edx, dword [esp + 0x90c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x904]
mov eax, dword [esp + 0x900]
push ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x914]
mov dword [esp + 0x38], ecx
fstp dword [esp]
fild dword [esp + 0x910]
push ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0x42200000
fstp dword [esp]
push 0x42200000
call fcn.0041bc80
fstp dword [esp + 0x50]
fild dword [0x127a18c]
mov ecx, 0x213
xor eax, eax
lea edi, [esp + 0xbc]
xor ebp, ebp
fmul qword [0x44c3b8]
rep stosd dword es:[edi], eax
fstp dword [esp + 0x7c]
mov ecx, dword [0x45d3d0]
add esp, 0xc
xor ebx, ebx
cmp ecx, ebp
jne 0x4140c8
mov eax, dword [0x45d3d8]
mov dword [0x45b3a8], eax
lea ecx, [eax + 1]
mov dword [0x45b3c0], ecx
jmp 0x41416c
mov eax, 0x51eb851f
imul ecx
mov ecx, edx
mov eax, 0x51eb851f
sar ecx, 6
mov edx, ecx
shr edx, 0x1f
add ecx, edx
imul dword [0x127a18c]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, ecx
je 0x41416c
mov eax, dword [0x45b3c0]
mov ecx, dword [0x450588]
mov dword [0x45b3a8], eax
inc eax
cmp eax, ecx
mov dword [0x45b3c0], eax
jle 0x41416c
cmp dword [0x45d3d8], ebp
jne 0x414151
call sub.MSVCRT.dll_rand
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0x14
jge 0x414151
call sub.MSVCRT.dll_rand
cdq
mov ecx, 3
idiv ecx
mov eax, dword [edx*8 + 0x450594]
mov dword [0x45d3d8], eax
inc edx
mov edx, dword [edx*8 + 0x450590]
mov dword [0x450588], edx
jmp 0x414167
mov eax, dword [0x45058c]
mov ecx, dword [0x450590]
mov dword [0x45d3d8], eax
mov dword [0x450588], ecx
mov dword [0x45b3c0], eax
mov ecx, dword [0x127a18c]
mov eax, 0x51eb851f
imul ecx
fild dword [0x127a18c]
fmul qword [0x44c728]
sar edx, 6
mov eax, edx
mov dword [0x45d3d0], ecx
shr eax, 0x1f
add edx, eax
push ebp
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x28]
fisub dword [esp + 0x14]
push ebp
push ecx
push 0x1353274
fsubr qword [0x44c318]
fstp dword [esp + 0x20]
call fcn.00437fac
mov edx, dword [esp + 0x918]
mov esi, dword [0x45b3a8]
add esp, 0x10
lea eax, [esp + 0xe4]
lea ecx, [edx + 0xa4]
add edx, 0x84
mov dword [esp + 0x14], edx
mov edx, dword [0x45b3c0]
mov dword [esp + 0x18], 8
mov edi, dword [esp + 0x14]
cmp dword [edi], ebp
je 0x414292
mov edi, dword [ecx - 0x20]
add ecx, 4
mov dword [eax - 0x34], edi
mov edi, dword [ecx - 4]
mov dword [eax], ebp
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0x10010
mov dword [eax - 0x24], 0x42740000
mov dword [eax - 0x20], 0x41200000
mov dword [eax - 0x1c], 0xc1d00000
mov edi, dword [eax - 0x24]
mov dword [eax - 0x14], edi
mov edi, dword [eax - 0x20]
mov dword [eax - 0x10], edi
mov edi, dword [eax - 0x1c]
mov dword [eax - 0xc], edi
mov dword [eax - 0x18], 0x20
mov dword [eax - 8], ebp
mov dword [eax - 4], ebp
mov dword [eax - 0x2c], 0x43480000
mov edi, dword [eax + 0x14]
or edi, 0x2400
inc ebx
mov dword [eax + 0x14], edi
mov dword [eax - 0x24], 0x42f00000
mov dword [eax - 0x20], 0x41000000
mov dword [eax - 0x1c], 0xc1200000
mov edi, dword [eax - 0x24]
mov dword [eax - 0x14], edi
mov edi, dword [eax - 0x20]
mov dword [eax - 0x10], edi
mov edi, dword [eax - 0x1c]
mov dword [eax - 0xc], edi
mov edi, dword [esp + 0x10]
mov dword [eax - 0x18], edx
mov dword [eax - 8], esi
mov dword [eax - 4], edi
add eax, 0xec
mov edi, dword [esp + 0x14]
add edi, 4
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x18]
dec edi
mov dword [esp + 0x18], edi
jne 0x4141ed
lea edx, [ebx*8]
mov ecx, dword [esp + 0x908]
sub edx, ebx
lea eax, [ebx + edx*4]
mov edx, dword [ecx + 0xc4]
lea eax, [ebx + eax*2]
shl eax, 2
mov dword [esp + eax + 0xb0], edx
lea ecx, [esp + eax + 0xc0]
mov dword [esp + eax + 0xe4], ebp
lea edx, [esp + eax + 0xc4]
mov dword [esp + eax + 0xf4], 0x10010
lea esi, [esp + eax + 0xc8]
mov dword [ecx], 0x42740000
mov dword [edx], 0x41200000
mov dword [esi], 0xc1d00000
mov ebp, dword [ecx]
lea edi, [esp + eax + 0xd0]
mov dword [esp + 0x18], edi
mov dword [edi], ebp
mov ebp, dword [edx]
lea edi, [esp + eax + 0xd4]
mov dword [esp + 0x14], edi
mov dword [edi], ebp
mov ebp, dword [esi]
lea edi, [esp + eax + 0xd8]
mov dword [edi], ebp
lea ebp, [esp + eax + 0xcc]
mov dword [esp + 0x1c], ebp
mov dword [ebp], 0x20
lea ebp, [esp + eax + 0xdc]
mov dword [esp + 0x20], ebp
mov dword [ebp], 0
lea ebp, [esp + eax + 0xe0]
mov dword [ebp], 0
mov dword [esp + eax + 0xb8], 0x43480000
or byte [esp + eax + 0xf9], 0x24
lea eax, [esp + eax + 0xf8]
mov dword [ecx], 0x42f00000
mov dword [edx], 0x41000000
mov dword [esi], 0xc1200000
mov eax, dword [ecx]
mov ecx, dword [esp + 0x18]
inc ebx
test ebx, ebx
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov edx, dword [edx]
mov dword [eax], edx
mov ecx, dword [esi]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x45b3c0]
mov dword [edi], ecx
mov ecx, dword [0x45b3a8]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
mov dword [ebp], eax
jle 0x414448
lea esi, [esp + 0xf8]
mov dword [esp + 0x10], ebx
mov ebp, 0x3f800000
mov edi, 0x3e19999a
mov eax, dword [esi]
lea ecx, [esi + 0x78]
or ah, 4
push ecx
mov dword [esi], eax
mov dword [esi + 0x74], 2
lea edx, [esp + 0x28]
mov dword [esi + 0x40], ebp
push 0x43000000
mov dword [esi + 0x44], ebp
push edx
mov dword [esi + 0x48], ebp
call fcn.00438f27
mov dword [esi + 0x64], 0x43c00000
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
xor eax, eax
mov dword [esi + 0x54], edi
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x68], 0x44800000
add esp, 0xc
add esi, 0xec
dec eax
mov dword [esp + 0x10], eax
jne 0x4143df
mov edx, dword [esp + 0x3c]
xor eax, eax
add edx, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x78], 0x40
call dword [0x48264c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8ec
ret