Function at 0x40be80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440ce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x48]
call fcn.00430ee0
mov eax, dword [ebp + 0xc]
push 1
push 0x45121c
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x188], 0
call fcn.004310a0
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x180], 1
call fcn.00429800
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
push 0xff
lea edx, [esp + 0x74]
push edx
push 0x13e6
push eax
mov byte [esp + 0x18c], 2
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x18]
call fcn.00429800
mov edi, dword [esp + 0x38]
mov byte [esp + 0x17c], 3
mov edi, edi
lea ecx, [esp + 0x34]
cmp edi, ecx
lea ecx, [esp + 0x14]
je 0x40bf5d
mov ebx, dword [edi]
mov edi, dword [edi + 4]
push 0x4451c0
call fcn.004297e0
push 0x4451bc
lea ecx, [esp + 0x18]
call fcn.004297e0
mov ecx, dword [ebx + 0x18]
mov edx, dword [ecx]
call dword [edx + 4]
push eax
lea ecx, [esp + 0x18]
call fcn.004297e0
jmp 0x40bf20
call fcn.0042e780
mov ecx, dword [esi + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00418c00
cmp eax, 6
jne 0x40c169
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x34]
cmp ecx, edx
je 0x40c130
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edi, dword [eax + 0x18]
mov edx, dword [esi + 0x14]
push edx
lea eax, [esp + 0x60]
mov dword [esp + 0x2c], ecx
push eax
mov ecx, edi
call fcn.004103c0
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x180], 4
call fcn.00430e60
lea ecx, [esp + 0x5c]
mov byte [esp + 0x17c], 3
call fcn.00430e90
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40c0a0
mov ecx, dword [esi + 0xc]
mov ebx, dword [ecx]
push 0
push 0
push 0
lea ecx, [edi + 8]
call fcn.0042e780
push eax
push 0x1430
push ebx
lea ecx, [esp + 0x3c]
call fcn.00429fa0
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x180], 5
call fcn.00429800
mov edi, dword [esp + 0x50]
mov byte [esp + 0x17c], 6
lea eax, [esp + 0x48]
cmp edi, eax
je 0x40c061
push edi
lea ecx, [esp + 0x30]
call fcn.00429a60
mov edi, dword [edi + 8]
push 0x4451c0
lea ecx, [esp + 0x20]
call fcn.004297e0
push 0x4451bc
lea ecx, [esp + 0x20]
call fcn.004297e0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
call fcn.004297f0
jmp 0x40c020
push 0x30
lea ecx, [esp + 0x20]
call fcn.0042e780
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
push eax
push edx
call fcn.00418bd0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 5
call fcn.0042e660
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 3
call fcn.0042e660
jmp 0x40bf80
lea ebx, [edi + 8]
mov ecx, ebx
call fcn.0042e780
mov ecx, dword [esi + 0x14]
push eax
call fcn.00413320
test al, al
jne 0x40bf80
mov eax, dword [esi + 0xc]
mov edi, dword [eax]
push 0
push 0
push 0
mov ecx, ebx
call fcn.0042e780
push eax
push 0x13f6
push edi
lea ecx, [esp + 0x28]
call fcn.00429fa0
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
push 0x33
push ecx
mov ecx, dword [esi + 0xc]
push edx
mov byte [esp + 0x188], 7
call fcn.00418bd0
sub eax, 2
je 0x40c1c7
sub eax, 4
je 0x40c109
dec eax
je 0x40c11f
lea ecx, [esp + 0x10]
mov byte [esp + 0x17c], 3
call fcn.0042e660
jmp 0x40bf80
lea ecx, [esp + 0x10]
mov byte [esp + 0x17c], 3
call fcn.0042e660
mov ecx, dword [esi + 0x14]
call fcn.00412150
test eax, eax
jne 0x40c161
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x48]
mov ecx, dword [ebp + 8]
push eax
push 0x13f5
push ecx
mov ecx, dword [esi + 0xc]
call fcn.00418d70
mov edx, dword [esi + 0x14]
mov ecx, dword [edx + 0x24]
push 0
call fcn.00410e80
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 2
call fcn.0042e660
lea ecx, [esp + 0x2c]
mov byte [esp + 0x17c], 1
call fcn.0042e660
lea ecx, [esp + 0x34]
mov byte [esp + 0x17c], 0
call fcn.0040bb00
lea ecx, [esp + 0x48]
mov dword [esp + 0x17c], 0xffffffff
call fcn.00430e90
mov ecx, dword [esp + 0x174]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x17c], 3
call fcn.0042e660
jmp 0x40c154