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

Disassembly:
push 0xffffffffffffffff
push 0x43a908
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.00403cf0
mov ecx, eax
call fcn.00404340
mov ebp, eax
push ebp
mov dword [esp + 0x14], ebp
mov edi, ebp
call fcn.00403d50
mov ecx, dword [eax]
mov eax, dword [0x44a0f8]
add esp, 4
cmp ecx, eax
push ebp
jne 0x40359c
call fcn.00403d70
add esp, 4
jmp 0x4035d6
call fcn.00403d70
mov edx, dword [eax]
mov eax, dword [0x44a0f8]
add esp, 4
cmp edx, eax
push ebp
jne 0x4035ba
call fcn.00403d50
add esp, 4
jmp 0x4035d6
call fcn.00403d70
mov eax, dword [eax]
push eax
call fcn.00404e00
mov ebp, eax
push ebp
mov dword [esp + 0x1c], ebp
call fcn.00403d70
add esp, 0xc
mov esi, dword [eax]
lea ecx, [esp + 0x18]
call fcn.004304db
cmp ebp, edi
mov dword [esp + 0x24], 0
je 0x40370e
push edi
call fcn.00403d50
mov ecx, dword [eax]
push ecx
call fcn.00403d60
push edi
mov dword [eax], ebp
call fcn.00403d50
push ebp
mov dword [esp + 0x20], eax
call fcn.00403d50
mov edx, dword [esp + 0x20]
push edi
mov ecx, dword [edx]
mov dword [eax], ecx
call fcn.00403d70
mov ecx, dword [eax]
add esp, 0x14
cmp ebp, ecx
jne 0x403633
push esi
call fcn.00403d60
add esp, 4
jmp 0x403684
push ebp
call fcn.00403d60
push esi
mov dword [esp + 0x18], eax
call fcn.00403d60
mov edx, dword [esp + 0x18]
push ebp
mov ecx, dword [edx]
mov dword [eax], ecx
call fcn.00403d60
mov edx, dword [eax]
push edx
call fcn.00403d50
push edi
mov dword [eax], esi
call fcn.00403d70
push ebp
mov dword [esp + 0x28], eax
call fcn.00403d70
mov ecx, dword [esp + 0x28]
push edi
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.00403d70
mov eax, dword [eax]
push eax
call fcn.00403d60
add esp, 0x20
mov ecx, ebx
mov dword [eax], ebp
call fcn.004029c0
cmp dword [eax], edi
jne 0x40369a
mov ecx, ebx
call fcn.004029c0
jmp 0x4036d1
push edi
call fcn.00403d60
mov ecx, dword [eax]
push ecx
call fcn.00403d50
mov ecx, dword [eax]
add esp, 8
cmp ecx, edi
push edi
jne 0x4036c1
call fcn.00403d60
mov edx, dword [eax]
push edx
call fcn.00403d50
jmp 0x4036ce
call fcn.00403d60
mov eax, dword [eax]
push eax
call fcn.00403d70
add esp, 8
push edi
mov dword [eax], ebp
call fcn.00403d60
push ebp
mov dword [esp + 0x18], eax
call fcn.00403d60
mov ecx, dword [esp + 0x18]
push edi
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.00404370
add esp, 0xc
push eax
push ebp
call fcn.00404370
add esp, 4
push eax
call fcn.004052a0
add esp, 8
mov ebp, edi
jmp 0x403818
push ebp
call fcn.00403d60
push esi
mov dword [esp + 0x1c], eax
call fcn.00403d60
mov ecx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [ecx]
mov ecx, ebx
mov dword [eax], edx
call fcn.004029c0
cmp dword [eax], edi
jne 0x40373d
mov ecx, ebx
call fcn.004029c0
jmp 0x403774
push edi
call fcn.00403d60
mov eax, dword [eax]
push eax
call fcn.00403d50
mov ecx, dword [eax]
add esp, 8
cmp ecx, edi
push edi
jne 0x403764
call fcn.00403d60
mov ecx, dword [eax]
push ecx
call fcn.00403d50
jmp 0x403771
call fcn.00403d60
mov edx, dword [eax]
push edx
call fcn.00403d70
add esp, 8
mov ecx, ebx
mov dword [eax], esi
call fcn.00403cd0
cmp dword [eax], edi
jne 0x4037cc
push edi
call fcn.00403d70
mov eax, dword [eax]
mov ecx, dword [0x44a0f8]
add esp, 4
cmp eax, ecx
jne 0x4037b4
push edi
call fcn.00403d60
add esp, 4
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.00403cd0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov dword [eax], edx
jmp 0x4037cc
push esi
call fcn.00404e00
add esp, 4
mov ecx, ebx
mov ebp, eax
call fcn.00403cd0
mov dword [eax], ebp
mov ebp, dword [esp + 0x10]
mov ecx, ebx
call fcn.00403ce0
cmp dword [eax], edi
jne 0x403818
push edi
call fcn.00403d50
mov eax, dword [eax]
mov ecx, dword [0x44a0f8]
add esp, 4
cmp eax, ecx
jne 0x403804
push edi
call fcn.00403d60
add esp, 4
mov ecx, ebx
mov edi, eax
call fcn.00403ce0
mov ecx, dword [edi]
mov dword [eax], ecx
jmp 0x403818
push esi
call fcn.00404dc0
add esp, 4
mov ecx, ebx
mov edi, eax
call fcn.00403ce0
mov dword [eax], edi
push ebp
call fcn.00404370
mov ecx, dword [eax]
add esp, 4
cmp ecx, 1
jne 0x403b49
mov ecx, ebx
call fcn.004029c0
cmp esi, dword [eax]
je 0x403b3a
push esi
call fcn.00404370
mov ecx, dword [eax]
add esp, 4
cmp ecx, 1
jne 0x403b3a
push esi
call fcn.00403d60
mov edx, dword [eax]
push edx
call fcn.00403d50
mov ecx, dword [eax]
add esp, 8
cmp esi, ecx
push esi
jne 0x40390c
call fcn.00403d60
mov eax, dword [eax]
push eax
call fcn.00403d70
mov edi, dword [eax]
push edi
call fcn.00404370
mov ecx, dword [eax]
add esp, 0xc
test ecx, ecx
jne 0x4038cf
push edi
call fcn.00404370
push esi
mov dword [eax], 1
call fcn.00403d60
mov ecx, dword [eax]
push ecx
call fcn.00404370
push esi
mov dword [eax], 0
call fcn.00403d60
mov edx, dword [eax]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.00404cf0
push esi
call fcn.00403d60
mov eax, dword [eax]
push eax
call fcn.00403d70
mov edi, dword [eax]
add esp, 8
push edi
call fcn.00403d50
mov ecx, dword [eax]
push ecx
call fcn.00404370
mov ecx, dword [eax]
add esp, 8
cmp ecx, 1
jne 0x4039d3
push edi
call fcn.00403d70
mov edx, dword [eax]
push edx
call fcn.00404370
mov ecx, dword [eax]
add esp, 8
cmp ecx, 1
jne 0x4039d3
jmp 0x4039a8
call fcn.00403d60
mov eax, dword [eax]
push eax
call fcn.00403d50
mov edi, dword [eax]
push edi
call fcn.00404370
mov ecx, dword [eax]
add esp, 0xc
test ecx, ecx
jne 0x403970
push edi
call fcn.00404370
push esi
mov dword [eax], 1
call fcn.00403d60
mov ecx, dword [eax]
push ecx
call fcn.00404370
push esi
mov dword [eax], 0
call fcn.00403d60
mov edx, dword [eax]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.00404e40
push esi
call fcn.00403d60
mov eax, dword [eax]
push eax
call fcn.00403d50
mov edi, dword [eax]
add esp, 8
push edi
call fcn.00403d70
mov ecx, dword [eax]
push ecx
call fcn.00404370
mov ecx, dword [eax]
add esp, 8
cmp ecx, 1
jne 0x403a89
push edi
call fcn.00403d50
mov edx, dword [eax]
push edx
call fcn.00404370
mov ecx, dword [eax]
add esp, 8
cmp ecx, 1
jne 0x403a89
push edi
call fcn.00404370
push esi
mov dword [eax], 0
call fcn.00403d60
mov esi, dword [eax]
add esp, 8
mov ecx, ebx
call fcn.004029c0
cmp esi, dword [eax]
jne 0x40383b
jmp 0x403b3a
push edi
call fcn.00403d70
mov eax, dword [eax]
push eax
call fcn.00404370
mov ecx, dword [eax]
add esp, 8
cmp ecx, 1
jne 0x403a29
push edi
call fcn.00403d50
mov ecx, dword [eax]
push ecx
call fcn.00404370
push edi
mov dword [eax], 1
call fcn.00404370
add esp, 0xc
mov ecx, ebx
mov dword [eax], 0
push edi
call fcn.00404e40
push esi
call fcn.00403d60
mov edx, dword [eax]
push edx
call fcn.00403d70
mov edi, dword [eax]
add esp, 8
push esi
call fcn.00403d60
mov eax, dword [eax]
push eax
call fcn.00404370
push edi
mov dword [esp + 0x20], eax
call fcn.00404370
mov ecx, dword [esp + 0x20]
push esi
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.00403d60
mov eax, dword [eax]
push eax
call fcn.00404370
push edi
mov dword [eax], 1
call fcn.00403d70
mov ecx, dword [eax]
push ecx
call fcn.00404370
push esi
mov dword [eax], 1
call fcn.00403d60
mov edx, dword [eax]
add esp, 0x20
mov ecx, ebx
push edx
call fcn.00404cf0
jmp 0x403b3a
push edi
call fcn.00403d50
mov eax, dword [eax]
push eax
call fcn.00404370
mov ecx, dword [eax]
add esp, 8
cmp ecx, 1
jne 0x403adf
push edi
call fcn.00403d70
mov ecx, dword [eax]
push ecx
call fcn.00404370
push edi
mov dword [eax], 1
call fcn.00404370
add esp, 0xc
mov ecx, ebx
mov dword [eax], 0
push edi
call fcn.00404cf0
push esi
call fcn.00403d60
mov edx, dword [eax]
push edx
call fcn.00403d50
mov edi, dword [eax]
add esp, 8
push esi
call fcn.00403d60
mov eax, dword [eax]
push eax
call fcn.00404370
push edi
mov dword [esp + 0x20], eax
call fcn.00404370
mov ecx, dword [esp + 0x20]
push esi
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.00403d60
mov eax, dword [eax]
push eax
call fcn.00404370
push edi
mov dword [eax], 1
call fcn.00403d50
mov ecx, dword [eax]
push ecx
call fcn.00404370
push esi
mov dword [eax], 1
call fcn.00403d60
mov edx, dword [eax]
add esp, 0x20
mov ecx, ebx
push edx
call fcn.00404e40
push esi
call fcn.00404370
add esp, 4
mov dword [eax], 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call fcn.00430577
push ebp
call fcn.004020d0
add esp, 4
mov ecx, ebx
push eax
call fcn.00404320
push ebp
mov ecx, ebx
call fcn.00401c70
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