Function at 0x413fb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4be61b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2f0
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00415100
mov eax, dword [esp + 0x320]
mov ecx, dword [esp + 0x31c]
mov edx, dword [esp + 0x318]
push eax
mov eax, dword [esp + 0x318]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x318], 0
call fcn.00415150
sub esp, 0x10
mov eax, 0x4152c0
mov ebx, esp
mov ecx, 0x415320
mov edx, 0x415380
push 0
mov dword [ebx], eax
push 0
mov edi, 0x4153a0
mov dword [ebx + 4], ecx
lea ecx, [esp + 0x48]
push ecx
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x30]
push edx
mov dword [ebx + 0xc], edi
call fcn.004a1af0
add esp, 0x20
test eax, eax
je 0x414070
lea ecx, [esp + 0x10]
call fcn.00415230
lea ecx, [esp + 0x10]
mov dword [esp + 0x308], 0xffffffff
call fcn.00415140
xor eax, eax
jmp 0x41423f
lea eax, [esp + 0x30]
push 0xffffffffffffffff
push eax
call fcn.004a3790
lea ecx, [esp + 0x38]
push 0xffffffffffffffff
push ecx
mov ebx, eax
call fcn.004a27a0
mov ebp, dword [ebx + 8]
add esp, 0x10
fstp qword [esp + 0x28]
mov dword [esp + 0x24], ebp
fild dword [esp + 0x24]
fimul dword [ebx + 4]
fmul qword [esp + 0x28]
fadd st(0), st(0)
call fcn.004b0e40
mov dx, word [ebx + 4]
push 0
push 0x10
push edx
mov edi, eax
mov eax, dword [esp + 0x31c]
push ebp
push 1
push edi
push 0
push eax
mov ecx, esi
call fcn.004137b0
test eax, eax
jne 0x4140ff
lea ecx, [esp + 0x30]
push ecx
call fcn.004a19f0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00415230
lea ecx, [esp + 0x10]
mov dword [esp + 0x308], 0xffffffff
call fcn.00415140
xor eax, eax
jmp 0x41423f
fld qword [esp + 0x28]
fmul qword [0x4c0558]
mov dword [esi + 0x46], edi
call fcn.004b0e40
mov dword [esi + 0x4a], eax
lea eax, [esi + 0x42]
lea ebp, [esi + 0x3e]
lea ecx, [esi + 0x3a]
push eax
lea edx, [esi + 0x36]
push ebp
push ecx
push edx
push edi
mov ecx, esi
call fcn.004139a0
test eax, eax
jne 0x414161
lea edx, [esp + 0x30]
push edx
call fcn.004a19f0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00415230
lea ecx, [esp + 0x10]
mov dword [esp + 0x308], 0xffffffff
call fcn.00415140
xor eax, eax
jmp 0x41423f
xor ebx, ebx
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
mov eax, dword [esi + 0x36]
push 1
push 2
push 0
add ecx, eax
push edi
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.004a37d0
add esp, 0x1c
test eax, eax
jle 0x414190
sub edi, eax
add ebx, eax
test edi, edi
jg 0x414163
mov eax, dword [esi + 0x42]
test eax, eax
je 0x4141c2
mov ecx, dword [ebp]
lea eax, [esp + 0x20]
push eax
push 1
push 2
push 0
add ecx, ebx
push edi
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.004a37d0
add esp, 0x1c
test eax, eax
jle 0x4141c2
sub edi, eax
add ebx, eax
test edi, edi
jg 0x414197
mov eax, dword [esi + 0x42]
mov ecx, dword [ebp]
mov edx, dword [esi + 0x3a]
push eax
mov eax, dword [esi + 0x36]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00413a80
lea ecx, [esp + 0x30]
push ecx
call fcn.004a19f0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00415230
mov eax, dword [esi + 4]
lea edi, [esi + 0x14]
push edi
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [esi + 4]
lea ebx, [esi + 0x18]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esi + 4]
lea ebp, [esi + 0x1c]
push ebp
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
mov ecx, dword [ebx]
mov eax, dword [edi]
mov edx, dword [ebp]
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0x10], edx
mov dword [esp + 0x308], 0xffffffff
call fcn.00415140
mov eax, 1
mov ecx, dword [esp + 0x300]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2fc
ret 0x14