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

Disassembly:
push 0xffffffffffffffff
push 0x43af88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00403380
mov ecx, eax
call fcn.0041a2a0
mov ebp, eax
push ebp
mov dword [esp + 0x14], ebp
mov edi, ebp
call fcn.00404900
mov ecx, dword [eax]
mov eax, dword [0x44a1c0]
add esp, 4
cmp ecx, eax
push ebp
jne 0x402b9c
call fcn.0041a270
add esp, 4
jmp 0x402bd6
call fcn.0041a270
mov edx, dword [eax]
mov eax, dword [0x44a1c0]
add esp, 4
cmp edx, eax
push ebp
jne 0x402bba
call fcn.00404900
add esp, 4
jmp 0x402bd6
call fcn.0041a270
mov eax, dword [eax]
push eax
call fcn.00404790
mov ebp, eax
push ebp
mov dword [esp + 0x1c], ebp
call fcn.0041a270
add esp, 0xc
mov esi, dword [eax]
lea ecx, [esp + 0x18]
call fcn.00430a3b
cmp ebp, edi
mov dword [esp + 0x24], 0
je 0x402d0e
push edi
call fcn.00404900
mov ecx, dword [eax]
push ecx
call fcn.0041a260
push edi
mov dword [eax], ebp
call fcn.00404900
push ebp
mov dword [esp + 0x20], eax
call fcn.00404900
mov edx, dword [esp + 0x20]
push edi
mov ecx, dword [edx]
mov dword [eax], ecx
call fcn.0041a270
mov ecx, dword [eax]
add esp, 0x14
cmp ebp, ecx
jne 0x402c33
push esi
call fcn.0041a260
add esp, 4
jmp 0x402c84
push ebp
call fcn.0041a260
push esi
mov dword [esp + 0x18], eax
call fcn.0041a260
mov edx, dword [esp + 0x18]
push ebp
mov ecx, dword [edx]
mov dword [eax], ecx
call fcn.0041a260
mov edx, dword [eax]
push edx
call fcn.00404900
push edi
mov dword [eax], esi
call fcn.0041a270
push ebp
mov dword [esp + 0x28], eax
call fcn.0041a270
mov ecx, dword [esp + 0x28]
push edi
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.0041a270
mov eax, dword [eax]
push eax
call fcn.0041a260
add esp, 0x20
mov ecx, ebx
mov dword [eax], ebp
call fcn.00405010
cmp dword [eax], edi
jne 0x402c9a
mov ecx, ebx
call fcn.00405010
jmp 0x402cd1
push edi
call fcn.0041a260
mov ecx, dword [eax]
push ecx
call fcn.00404900
mov ecx, dword [eax]
add esp, 8
cmp ecx, edi
push edi
jne 0x402cc1
call fcn.0041a260
mov edx, dword [eax]
push edx
call fcn.00404900
jmp 0x402cce
call fcn.0041a260
mov eax, dword [eax]
push eax
call fcn.0041a270
add esp, 8
push edi
mov dword [eax], ebp
call fcn.0041a260
push ebp
mov dword [esp + 0x18], eax
call fcn.0041a260
mov ecx, dword [esp + 0x18]
push edi
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.004048f0
add esp, 0xc
push eax
push ebp
call fcn.004048f0
add esp, 4
push eax
call fcn.00405220
add esp, 8
mov ebp, edi
jmp 0x402e18
push ebp
call fcn.0041a260
push esi
mov dword [esp + 0x1c], eax
call fcn.0041a260
mov ecx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [ecx]
mov ecx, ebx
mov dword [eax], edx
call fcn.00405010
cmp dword [eax], edi
jne 0x402d3d
mov ecx, ebx
call fcn.00405010
jmp 0x402d74
push edi
call fcn.0041a260
mov eax, dword [eax]
push eax
call fcn.00404900
mov ecx, dword [eax]
add esp, 8
cmp ecx, edi
push edi
jne 0x402d64
call fcn.0041a260
mov ecx, dword [eax]
push ecx
call fcn.00404900
jmp 0x402d71
call fcn.0041a260
mov edx, dword [eax]
push edx
call fcn.0041a270
add esp, 8
mov ecx, ebx
mov dword [eax], esi
call fcn.00403c90
cmp dword [eax], edi
jne 0x402dcc
push edi
call fcn.0041a270
mov eax, dword [eax]
mov ecx, dword [0x44a1c0]
add esp, 4
cmp eax, ecx
jne 0x402db4
push edi
call fcn.0041a260
add esp, 4
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.00403c90
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov dword [eax], edx
jmp 0x402dcc
push esi
call fcn.00404790
add esp, 4
mov ecx, ebx
mov ebp, eax
call fcn.00403c90
mov dword [eax], ebp
mov ebp, dword [esp + 0x10]
mov ecx, ebx
call fcn.004032f0
cmp dword [eax], edi
jne 0x402e18
push edi
call fcn.00404900
mov eax, dword [eax]
mov ecx, dword [0x44a1c0]
add esp, 4
cmp eax, ecx
jne 0x402e04
push edi
call fcn.0041a260
add esp, 4
mov ecx, ebx
mov edi, eax
call fcn.004032f0
mov ecx, dword [edi]
mov dword [eax], ecx
jmp 0x402e18
push esi
call fcn.00404750
add esp, 4
mov ecx, ebx
mov edi, eax
call fcn.004032f0
mov dword [eax], edi
push ebp
call fcn.004048f0
mov ecx, dword [eax]
add esp, 4
cmp ecx, 1
jne 0x403149
mov ecx, ebx
call fcn.00405010
cmp esi, dword [eax]
je 0x40313a
push esi
call fcn.004048f0
mov ecx, dword [eax]
add esp, 4
cmp ecx, 1
jne 0x40313a
push esi
call fcn.0041a260
mov edx, dword [eax]
push edx
call fcn.00404900
mov ecx, dword [eax]
add esp, 8
cmp esi, ecx
push esi
jne 0x402f0c
call fcn.0041a260
mov eax, dword [eax]
push eax
call fcn.0041a270
mov edi, dword [eax]
push edi
call fcn.004048f0
mov ecx, dword [eax]
add esp, 0xc
test ecx, ecx
jne 0x402ecf
push edi
call fcn.004048f0
push esi
mov dword [eax], 1
call fcn.0041a260
mov ecx, dword [eax]
push ecx
call fcn.004048f0
push esi
mov dword [eax], 0
call fcn.0041a260
mov edx, dword [eax]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.00404680
push esi
call fcn.0041a260
mov eax, dword [eax]
push eax
call fcn.0041a270
mov edi, dword [eax]
add esp, 8
push edi
call fcn.00404900
mov ecx, dword [eax]
push ecx
call fcn.004048f0
mov ecx, dword [eax]
add esp, 8
cmp ecx, 1
jne 0x402fd3
push edi
call fcn.0041a270
mov edx, dword [eax]
push edx
call fcn.004048f0
mov ecx, dword [eax]
add esp, 8
cmp ecx, 1
jne 0x402fd3
jmp 0x402fa8
call fcn.0041a260
mov eax, dword [eax]
push eax
call fcn.00404900
mov edi, dword [eax]
push edi
call fcn.004048f0
mov ecx, dword [eax]
add esp, 0xc
test ecx, ecx
jne 0x402f70
push edi
call fcn.004048f0
push esi
mov dword [eax], 1
call fcn.0041a260
mov ecx, dword [eax]
push ecx
call fcn.004048f0
push esi
mov dword [eax], 0
call fcn.0041a260
mov edx, dword [eax]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.004047d0
push esi
call fcn.0041a260
mov eax, dword [eax]
push eax
call fcn.00404900
mov edi, dword [eax]
add esp, 8
push edi
call fcn.0041a270
mov ecx, dword [eax]
push ecx
call fcn.004048f0
mov ecx, dword [eax]
add esp, 8
cmp ecx, 1
jne 0x403089
push edi
call fcn.00404900
mov edx, dword [eax]
push edx
call fcn.004048f0
mov ecx, dword [eax]
add esp, 8
cmp ecx, 1
jne 0x403089
push edi
call fcn.004048f0
push esi
mov dword [eax], 0
call fcn.0041a260
mov esi, dword [eax]
add esp, 8
mov ecx, ebx
call fcn.00405010
cmp esi, dword [eax]
jne 0x402e3b
jmp 0x40313a
push edi
call fcn.0041a270
mov eax, dword [eax]
push eax
call fcn.004048f0
mov ecx, dword [eax]
add esp, 8
cmp ecx, 1
jne 0x403029
push edi
call fcn.00404900
mov ecx, dword [eax]
push ecx
call fcn.004048f0
push edi
mov dword [eax], 1
call fcn.004048f0
add esp, 0xc
mov ecx, ebx
mov dword [eax], 0
push edi
call fcn.004047d0
push esi
call fcn.0041a260
mov edx, dword [eax]
push edx
call fcn.0041a270
mov edi, dword [eax]
add esp, 8
push esi
call fcn.0041a260
mov eax, dword [eax]
push eax
call fcn.004048f0
push edi
mov dword [esp + 0x20], eax
call fcn.004048f0
mov ecx, dword [esp + 0x20]
push esi
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.0041a260
mov eax, dword [eax]
push eax
call fcn.004048f0
push edi
mov dword [eax], 1
call fcn.0041a270
mov ecx, dword [eax]
push ecx
call fcn.004048f0
push esi
mov dword [eax], 1
call fcn.0041a260
mov edx, dword [eax]
add esp, 0x20
mov ecx, ebx
push edx
call fcn.00404680
jmp 0x40313a
push edi
call fcn.00404900
mov eax, dword [eax]
push eax
call fcn.004048f0
mov ecx, dword [eax]
add esp, 8
cmp ecx, 1
jne 0x4030df
push edi
call fcn.0041a270
mov ecx, dword [eax]
push ecx
call fcn.004048f0
push edi
mov dword [eax], 1
call fcn.004048f0
add esp, 0xc
mov ecx, ebx
mov dword [eax], 0
push edi
call fcn.00404680
push esi
call fcn.0041a260
mov edx, dword [eax]
push edx
call fcn.00404900
mov edi, dword [eax]
add esp, 8
push esi
call fcn.0041a260
mov eax, dword [eax]
push eax
call fcn.004048f0
push edi
mov dword [esp + 0x20], eax
call fcn.004048f0
mov ecx, dword [esp + 0x20]
push esi
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.0041a260
mov eax, dword [eax]
push eax
call fcn.004048f0
push edi
mov dword [eax], 1
call fcn.00404900
mov ecx, dword [eax]
push ecx
call fcn.004048f0
push esi
mov dword [eax], 1
call fcn.0041a260
mov edx, dword [eax]
add esp, 0x20
mov ecx, ebx
push edx
call fcn.004047d0
push esi
call fcn.004048f0
add esp, 4
mov dword [eax], 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call fcn.00430ad7
push ebp
call fcn.004020b0
add esp, 4
mov ecx, ebx
push eax
call fcn.00404290
push ebp
mov ecx, ebx
call fcn.00401e90
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x30]
dec eax
pop edi
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x28]
pop esi
pop ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8