Function at 0x41a040
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 0xc]
jbe 0x41a432
sub esp, 0x48
mov ecx, dword [esp + 0x4c]
test byte [ecx], al
lea edi, [ecx + 0x44]
mov dword [esp + 0x44], edi
mov edx, dword [0x54cbf0]
test edx, edx
jne 0x41a079
mov dword [ecx + 0x44], 0
jmp 0x41a080
xor eax, eax
call fcn.0045d8e0
lea eax, [0x54ca8c]
mov dword [esp], eax
call fcn.004022e0
mov eax, dword [esp + 4]
test eax, eax
jne 0x41a0b2
mov eax, dword [esp + 0x4c]
mov dword [eax + 0xe4], 0
mov dword [eax + 0xe8], 0
add esp, 0x48
ret
call fcn.00450ff0
mov eax, dword [esp]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x20], ecx
lea edx, [0x54d484]
mov dword [esp], edx
mov dword [esp + 4], 0xffffffff
call fcn.00402400
mov eax, dword [esp + 8]
mov ecx, dword [0x54d478]
cmp ecx, eax
je 0x41a3b0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 4
call fcn.00438c00
mov eax, dword [esp + 0x4c]
mov byte [eax + 0x64], 1
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x54]
mov dword [esp], ecx
call fcn.00444e50
mov eax, dword [esp + 4]
test byte [eax], al
add eax, 0xb84
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
call fcn.0041b780
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
mov dword [esp + 4], 4
mov dword [esp + 8], 2
call fcn.00438c00
lea eax, [0x54d290]
mov dword [esp], eax
call fcn.004024e0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00407cf0
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x38], xmm0
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.00458f50
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0xe4]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0xe8]
mov dword [esp + 0x30], edx
movsd xmm0, qword [esp + 0x38]
mulsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
call fcn.00458eb0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x34]
mov edx, ecx
add ecx, eax
mov ebx, ecx
add ecx, 1
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x4c]
mov dword [esi + 0xe4], ecx
add edx, eax
mov eax, dword [esp + 0x30]
adc ebp, eax
add ebx, 1
adc ebp, 0
mov dword [esi + 0xe8], ebp
lea eax, [0x54d484]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402400
mov eax, dword [esp + 8]
mov ecx, dword [0x54d478]
cmp ecx, eax
jb 0x41a32f
jne 0x41a27e
mov dword [esp], 0
call fcn.00418140
movzx eax, byte [esp + 4]
test al, al
jne 0x41a27e
mov ecx, dword [0x54cbf0]
test ecx, ecx
jne 0x41a271
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x44], eax
jmp 0x41a27e
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
call fcn.0045d8e0
call fcn.00450ff0
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 4]
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 0x54]
mov dword [esp], eax
call fcn.00444e50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov ebx, ecx
sub ecx, edx
mov ebp, dword [eax + 0xb68]
mov esi, ebp
add ebp, ecx
mov edi, dword [eax + 0xb6c]
mov dword [eax + 0xb68], ebp
sub ebx, edx
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
sbb edx, ebx
add esi, ecx
adc edi, edx
mov dword [eax + 0xb6c], edi
test edi, edi
setg cl
sete dl
cmp ebp, 0x1388
seta bl
and edx, ebx
or ecx, edx
test cl, cl
je 0x41a32b
mov dword [esp + 0x40], eax
lea eax, [0x54d258]
mov dword [esp], eax
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
call fcn.004023a0
mov eax, dword [esp + 0x40]
mov dword [eax + 0xb68], 0
mov dword [eax + 0xb6c], 0
add esp, 0x48
ret
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ecx
call fcn.004360d0
lea eax, [0x4b4545]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call fcn.004369a0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00436640
lea eax, [0x4b2434]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.004369a0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00436640
call fcn.004362e0
call fcn.00436130
lea eax, [0x4b50be]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.00434a60
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ecx
call fcn.004360d0
lea eax, [0x4b4a0c]
mov dword [esp], eax
mov dword [esp + 4], 0x16
call fcn.004369a0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00436640
lea eax, [0x4b2434]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.004369a0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00436640
call fcn.004362e0
call fcn.00436130
lea eax, [0x4b3bdd]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.00434a60
nop
call fcn.0045b3b0
jmp fcn.0041a040