Function at 0x412430
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456670
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x46c864]
xor eax, ebp
mov dword [ebp - 0x80], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407cb0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0x14
push edx
lea ecx, [ebp - 0x7c]
call fcn.004172f0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x28]
and ecx, 0x40
neg ecx
sbb ecx, ecx
neg ecx
mov byte [ebp - 0xd], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x28]
and eax, 4
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x215], al
mov ecx, dword [ebp - 0x238]
add ecx, 0x28
call fcn.0040efe0
movzx ecx, al
test ecx, ecx
je 0x4124f2
mov ecx, dword [ebp - 0x238]
add ecx, 0x24
call fcn.00412c20
push eax
mov edx, dword [ebp - 0x238]
mov eax, dword [edx + 4]
push eax
call fcn.00404940
add esp, 8
push eax
mov ecx, dword [ebp - 0x238]
add ecx, 0x28
call fcn.0040efc0
mov ecx, dword [ebp - 0x238]
add ecx, 0x28
call fcn.00412c20
push eax
lea ecx, [ebp - 0x14]
call fcn.004260c0
mov dword [ebp - 0x28], eax
push 0xf00021
lea ecx, [ebp - 0x7c]
call fcn.00417330
push eax
lea ecx, [ebp - 0x7c]
call fcn.00417310
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040ef40
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call fcn.004260c0
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx + 0x74]
mov eax, dword [ebp - 0x238]
mov dword [eax + 0x30], edx
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x41256b
mov edx, dword [ebp - 0x238]
mov eax, dword [edx + 0x78]
mov ecx, dword [ebp - 0x238]
mov dword [ecx + 0x30], eax
movzx edx, byte [ebp - 0x215]
test edx, edx
je 0x41258b
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax + 0x80]
mov edx, dword [ebp - 0x238]
mov dword [edx + 0x30], ecx
push 0
lea ecx, [ebp - 0x48]
call fcn.00407cb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00412c20
push eax
lea ecx, [ebp - 0x48]
call fcn.004253f0
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0x21c], ecx
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x4125d1
mov eax, dword [ebp - 0x238]
cmp dword [eax + 0x64], 0
je 0x412680
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x228], ecx
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x224], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x238]
add ecx, 0x28
call fcn.0040efe0
movzx ecx, al
test ecx, ecx
je 0x412649
mov ecx, dword [ebp - 0x238]
add ecx, 0x24
call fcn.00412c20
push eax
mov edx, dword [ebp - 0x238]
mov eax, dword [edx + 4]
push eax
call fcn.00404940
add esp, 8
push eax
mov ecx, dword [ebp - 0x238]
add ecx, 0x28
call fcn.0040efc0
mov ecx, dword [ebp - 0x238]
xor edx, edx
cmp dword [ecx + 0x64], 0
sete dl
push edx
push 0xededed
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx + 0x28]
push edx
lea ecx, [ebp - 0x14]
call fcn.00412c20
push eax
call fcn.004128b0
add esp, 0x14
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x238]
add ecx, 0x30
call fcn.004259b0
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
push 0
push 0
lea ecx, [ebp - 0x6c]
call fcn.004172b0
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x238]
mov eax, dword [edx + 0x5c]
push eax
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx + 0x58]
push edx
lea ecx, [ebp - 0x5c]
call fcn.004174c0
mov ecx, dword [ebp - 0x238]
add ecx, 0x30
call fcn.00412c20
push eax
lea ecx, [ebp - 0x48]
call fcn.004260c0
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x238]
add eax, 0x34
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
push 0xff
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x6c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x68]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x64]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x60]
mov dword [ecx + 0xc], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x230], esp
mov edx, dword [ebp - 0x48]
push edx
call fcn.00407cb0
mov dword [ebp - 0x23c], eax
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x58]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x54]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x50]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00404b90
add esp, 0x3c
mov ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004260c0
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x50]
add ecx, dword [eax + 0x60]
mov dword [ebp - 0x20], ecx
xor edx, edx
mov word [ebp - 0x214], dx
push 0x18e
push 0
lea eax, [ebp - 0x212]
push eax
call fcn.00446420
add esp, 0xc
push 0xc7
lea ecx, [ebp - 0x214]
push ecx
mov ecx, dword [ebp - 0x238]
add ecx, 4
call fcn.004111d0
mov ecx, dword [ebp - 0x238]
add ecx, 0x2c
call fcn.00412c20
push eax
lea ecx, [ebp - 0x14]
call fcn.004260c0
mov dword [ebp - 0x44], eax
push 1
lea ecx, [ebp - 0x14]
call fcn.004261f0
mov edx, dword [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x14]
call fcn.004395d0
push 0x25
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.00446607
add esp, 4
push eax
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x14]
call fcn.00426240
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x14]
call fcn.004260c0
mov dword [ebp - 0x234], 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004253c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004260a0
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x80]
xor ecx, ebp
call fcn.00445d4c
mov esp, ebp
pop ebp
ret 8