Function at 0x4011f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40f12a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
mov ebp, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00401ca0
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], ebx
call fcn.00401ca0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x30]
mov byte [esp + 0x138], 1
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x30]
push eax
push 0x100
push ecx
call fcn.004066cc
add esp, 0xc
test eax, eax
je 0x401496
push esi
lea edx, [esp + 0x34]
push edx
call fcn.00401620
mov esi, eax
add esp, 4
mov al, byte [esi]
cmp al, bl
je 0x401473
cmp al, 0x23
je 0x401473
push 0x3d
push esi
call fcn.00406610
add esp, 8
test eax, eax
je 0x401473
push esi
lea ecx, [esp + 0x14]
call fcn.00401d50
push 0x3d
lea ecx, [esp + 0x14]
call fcn.00402160
lea ecx, [esp + 0x10]
call fcn.00401f50
lea ecx, [esp + 0x10]
call fcn.00402070
push 0x3d
push esi
call fcn.00406610
inc eax
push eax
call fcn.00401620
add esp, 0xc
lea ecx, [esp + 0x14]
push eax
call fcn.00401d50
push 0xd
lea ecx, [esp + 0x18]
call fcn.00402160
push 0xa
lea ecx, [esp + 0x18]
call fcn.00402160
push 0xc
call fcn.004061c0
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
cmp esi, ebx
mov byte [esp + 0x13c], 2
je 0x401325
mov ecx, esi
call fcn.00401ca0
lea ecx, [esi + 4]
mov byte [esp + 0x13c], 3
call fcn.00401ca0
jmp 0x401327
xor esi, esi
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x140], 1
call fcn.00401d70
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 4]
call fcn.00401d70
lea ecx, [esp + 0x20]
mov dword [esi + 8], ebx
call fcn.00401ca0
lea edx, [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x144], 4
call fcn.00401650
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 1
call fcn.00401cd0
lea ecx, [esp + 0x10]
push ecx
call dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, 1
shl edx, cl
mov ecx, dword [ebp]
add esp, 4
dec edx
and eax, edx
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
mov dword [eax], esi
cmp ecx, ebx
je 0x4013a7
mov dword [esi + 8], ecx
mov eax, dword [ebp + 4]
mov esi, dword [ebp + 8]
inc eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
fild qword [esp + 0x24]
mov dword [esp + 0x30], ebx
mov dword [ebp + 4], eax
fidiv dword [esp + 0x2c]
fcomp qword [ebp + 0x28]
fnstsw ax
test ah, 1
jne 0x401473
cmp byte [ebp + 0x14], 1
je 0x401473
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp]
lea eax, [esi + esi]
inc edi
mov dword [ebp + 8], eax
mov dword [esp + 0x18], edx
shl eax, 2
push eax
mov dword [ebp + 0xc], edi
call fcn.004061c0
mov ecx, dword [ebp + 8]
mov edi, eax
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
cmp esi, ebx
rep stosb byte es:[edi], al
jle 0x401466
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
mov esi, dword [edi]
cmp esi, ebx
je 0x401458
push esi
call dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, 1
shl edx, cl
mov ecx, dword [ebp]
add esp, 4
dec edx
and eax, edx
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
mov dword [eax], esi
mov eax, dword [esi + 8]
mov dword [esi + 8], ecx
cmp eax, ebx
mov esi, eax
jne 0x40142e
mov eax, dword [esp + 0x1c]
add edi, 4
dec eax
mov dword [esp + 0x1c], eax
jne 0x401428
mov edx, dword [esp + 0x18]
push edx
call fcn.0040621e
add esp, 4
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x34]
push eax
push 0x100
push ecx
call fcn.004066cc
add esp, 0xc
test eax, eax
jne 0x401263
pop esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], bl
call fcn.00401cd0
lea ecx, [esp + 0xc]
mov dword [esp + 0x138], 0xffffffff
call fcn.00401cd0
mov ecx, dword [esp + 0x130]
pop edi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret 4