Function at 0x4045ce
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
mov dword [ebp - 0x10], eax
mov edi, dword [esi + 0xc]
mov edx, ebx
imul edx, ebx
test edx, edx
setne al
test esi, esi
setne dl
movzx eax, al
and edx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov dword [esi], eax
cmp dword [0x407024], 0x70f76985
jne 0x404640
mov dword [esp + 0x14], ebx
mov eax, dword [0x407064]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x729a524a
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00405aab
mov edx, eax
jmp 0x40465d
mov edx, 0
cmp dword [ebp - 0x10], 0
je 0x40465d
imul eax, dword [ebp - 0x10], 0x2ba725f6
add eax, edi
test eax, eax
je 0x40465d
mov edx, 1
cmp dword [0x407038], 0x543764f0
jne 0x404692
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
mov eax, dword [0x407064]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], 0x543764f0
call fcn.00402f3d
mov edx, eax
jmp 0x4046b5
mov ecx, 0
mov eax, esi
imul eax, edi
test eax, eax
jne 0x4046ae
mov eax, dword [0x407050]
sub eax, edx
test eax, 0x4fef5198
je 0x4046b3
mov ecx, 1
mov edx, ecx
cmp dword [0x407010], 0x70f76985
jne 0x4046d1
mov dword [esp + 4], edx
mov dword [esp], 0x1d32fee3
call fcn.004049fa
mov dword [esp + 4], 0x40a06d
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.004049b0
mov word [ebx], 0x17
cmp dword [0x407058], 0x21dd1692
jne 0x404706
mov dword [esp + 4], edi
mov eax, dword [0x40702c]
mov dword [esp], eax
call fcn.004049fa
mov dword [esp + 8], 0
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00404482
mov dword [esi + 0x6c], eax
mov dword [esp + 4], 0x40a086
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.004049b0
cmp dword [0x40704c], 0x1fec8b79
jne 0x404747
call fcn.00402213
mov word [ebx], 0xc
mov dword [esp + 8], 0
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00404482
mov dword [esi + 0x74], eax
cmp dword [0x407034], 0x5b1db783
jne 0x404777
call fcn.00404548
mov dword [esp + 4], 0x40a097
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.004049b0
mov word [ebx], 0xf
mov dword [esp + 8], 0
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00404482
mov dword [esi + 0x78], eax
cmp dword [0x407054], 0x3f66a39d
jne 0x4047bd
mov dword [esp], ebx
call fcn.004043ef
mov dword [esp + 4], 0x40a0a8
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.004049b0
cmp dword [0x407064], 0x39db942b
jne 0x404810
mov dword [esp + 0x14], 0x4e374816
mov dword [esp + 0x10], 0x436876e7
mov eax, dword [0x40706c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2ba4917a
mov dword [esp + 4], 0xf13a62d
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00404f78
mov word [ebx], 9
mov dword [esp + 8], 0
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00404482
mov dword [esi + 0x7c], eax
mov dword [esp + 4], 0x40a0b9
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.004049b0
cmp dword [0x407018], 0x543764f0
jne 0x40486e
mov dword [esp + 0x10], 0x7a9d0fc7
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], 0x5e88cd38
call fcn.0040263e
cmp dword [0x407068], 0x21dd1692
jne 0x404898
mov dword [esp + 8], 0x709bafe9
mov eax, dword [0x407074]
mov dword [esp + 4], eax
mov eax, dword [0x407054]
mov dword [esp], eax
call fcn.004026ca
mov word [ebx], 0xd
mov dword [esp + 8], 0
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00404482
mov dword [esi + 0x80], eax
mov dword [esp + 4], 0x40a0ca
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.004049b0
mov word [ebx], 0x14
mov dword [esp + 8], 0
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00404482
mov dword [esi + 0x68], eax
mov dword [esp + 4], 0x40a0e3
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.004049b0
mov word [ebx], 0x13
mov dword [esp + 8], 0
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00404482
mov dword [esi + 0x70], eax
mov dword [esp], esi
call fcn.00402e4a
test eax, eax
je 0x40496f
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call dword [esi + 0x74]
sub esp, 0x1c
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
sete dl
cmp eax, 0xffffffff
sete al
or eax, edx
test al, 1
je 0x404988
call 0x406848
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1000
mov eax, dword [eax + 8]
mov dword [esp], eax
call fcn.00402d46
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret