Function at 0x404317
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 edi, dword [ebp + 0xc]
mov esi, dword [0x406030]
add esi, 0x467fc925
and esi, edi
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov dword [edi], eax
mov dword [esp + 4], 0x4086c0
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.0040395e
mov word [ebx], 0x17
cmp dword [0x406038], 0x489c49b7
jne 0x404388
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00402161
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.00403980
mov dword [edi + 0x6c], eax
cmp dword [0x406018], 0x489c49b7
jne 0x4043dd
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x4d0eccbe
mov dword [esp + 0xc], ebx
mov eax, dword [0x406010]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004020cd
mov esi, eax
jmp 0x4043e3
mov eax, dword [ebp - 0x14]
lea esi, [edi + eax]
mov dword [esp + 4], 0x4086d9
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.0040395e
mov word [ebx], 0xc
cmp dword [0x406028], 0x62c61a0c
jne 0x404435
mov eax, dword [0x406024]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x3c360b9e
mov dword [esp], esi
call fcn.004020cd
mov dword [esp + 8], 0
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00403980
mov dword [edi + 0x74], eax
mov dword [esp + 4], 0x4086ea
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.0040395e
mov word [ebx], 0xf
mov dword [esp + 8], 0
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00403980
mov dword [edi + 0x78], eax
mov dword [esp + 4], 0x4086fb
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.0040395e
mov word [ebx], 9
mov dword [esp + 8], 0
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00403980
mov dword [edi + 0x7c], eax
mov dword [esp + 4], 0x40870c
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.0040395e
mov word [ebx], 0xd
mov dword [esp + 8], 0
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00403980
mov dword [edi + 0x80], eax
mov dword [esp + 4], 0x40871d
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.0040395e
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.00403980
mov dword [edi + 0x68], eax
mov dword [esp + 4], 0x408736
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.0040395e
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.00403980
mov dword [edi + 0x70], eax
mov dword [esp], edi
call fcn.00401bb6
test eax, eax
je 0x4045a9
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 [edi + 0x10]
mov dword [esp], eax
call dword [edi + 0x74]
sub esp, 0x1c
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
test eax, eax
sete dl
cmp eax, 0xffffffff
sete al
or eax, edx
test al, 1
je 0x4045c2
call sub.msvcrt.dll_abort
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x1000
mov eax, dword [eax + 8]
mov dword [esp], eax
call fcn.00402704
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret