Function at 0x402db4
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [0x405078], 0x5a469f9e
jne 0x402dd3
call fcn.0040330c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov dword [esi], eax
mov dword [esp + 4], 0x40718f
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00401c83
mov word [ebx], 0x17
lea eax, [esi + 0x6c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [esi + 8]
mov dword [esp], eax
call dword [esi + 0x5c]
sub esp, 0x10
cmp dword [0x405030], 0x826e931
jne 0x402e41
mov dword [esp + 0xc], ebx
mov eax, dword [0x40507c]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], 0x2243a091
call fcn.00402d8f
mov dword [esp + 4], 0x4071a8
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00401c83
cmp dword [0x405074], 0x241f5a75
jne 0x402e6c
mov dword [esp + 4], ebx
mov dword [esp], ebx
call fcn.00403815
cmp dword [0x40507c], 0x241f5a75
jne 0x402e95
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [0x40503c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], ebx
call fcn.004021ed
cmp dword [0x405014], 0x6d1ceef5
jne 0x402eba
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
mov eax, dword [0x405048]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00402c7c
mov word [ebx], 0xc
cmp dword [0x40502c], 0x6585543c
jne 0x402ed0
call fcn.00403861
cmp dword [0x405028], 0x5a469f9e
jne 0x402f01
mov eax, dword [0x405030]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x3e537bcf
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], ebx
call fcn.00403672
cmp dword [0x40501c], 0xc1dec2a
jne 0x402f21
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], ebx
mov dword [esp], ebx
call fcn.00403a46
lea eax, [esi + 0x74]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [esi + 0x5c]
sub esp, 0x10
cmp dword [0x405054], 0x6d1ceef5
jne 0x402f68
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0040383f
cmp dword [0x405080], 0x56291502
jne 0x402f9e
mov eax, dword [0x405020]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x386cb204
mov dword [esp + 8], ebx
mov eax, dword [0x405060]
mov dword [esp + 4], eax
mov dword [esp], 0x384553a7
call fcn.004020f7
mov dword [esp + 4], 0x4071b6
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00401c83
cmp dword [0x405018], 0x6d1ceef5
jne 0x402fda
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [0x40501c]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.004032a2
mov word [ebx], 0xf
lea eax, [esi + 0x78]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [esi + 0x5c]
sub esp, 0x10
mov dword [esp + 4], 0x4071c7
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00401c83
mov word [ebx], 9
lea eax, [esi + 0x7c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [esi + 0x5c]
sub esp, 0x10
mov dword [esp + 4], 0x4071d2
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00401c83
mov word [ebx], 0xd
lea eax, [esi + 0x80]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [esi + 0x5c]
sub esp, 0x10
mov dword [esp + 4], 0x4071e1
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00401c83
mov word [ebx], 0x14
lea eax, [esi + 0x68]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [esi + 8]
mov dword [esp], eax
call dword [esi + 0x5c]
sub esp, 0x10
mov dword [esp + 4], 0x4071f7
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00401c83
mov word [ebx], 0x13
lea eax, [esi + 0x70]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [esi + 8]
mov dword [esp], eax
call dword [esi + 0x5c]
sub esp, 0x10
mov dword [esp], esi
call fcn.0040152e
test eax, eax
je 0x403128
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 0x403141
call sub.msvcrt.dll_abort
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.0040379b
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret