Function at 0x403ce0
Capabilities:
Access peb ldr_data
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45c887
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
mov eax, dword [0x479a50]
push ebx
push ebp
push esi
mov dword [esp + 0x188], eax
push edi
mov dword [esp + 0x40], ecx
xor ebp, ebp
mov dword [esp + 0x198], ebp
call fcn.004511c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x24], edi
mov byte [esp + 0x198], 1
call fcn.004511c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x198], 2
call fcn.004511c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x198], 3
call fcn.004511c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov esi, dword [esp + 0x1a0]
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
cmp eax, ebp
mov byte [esp + 0x198], 5
jl 0x404499
cmp eax, ecx
jg 0x404499
cmp byte [eax + esi], 0x5c
push esi
jne 0x403dd0
lea eax, [esp + 0x20]
push str._sShade.
push eax
call fcn.004021f0
push esi
push str._sWireframe_
lea ecx, [esp + 0x2c]
push ecx
jmp 0x403dea
lea edx, [esp + 0x20]
push 0x460c04
push edx
call fcn.004021f0
push esi
push 0x460bf4
lea eax, [esp + 0x2c]
push eax
call fcn.004021f0
mov edx, dword [esp + 0x34]
add esp, 0x18
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
jne 0x403eda
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x2c]
call fcn.004032c0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x198], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403e68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x198], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x198], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403eb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x198], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ed2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
jmp 0x40433a
mov eax, dword [esp + 0x4c]
test al, 0x16
jne 0x404045
test ah, 1
jne 0x404045
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x14]
call fcn.00402cf0
push 3
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401d70
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x19c], 6
call fcn.00402050
lea ecx, [esp + 0x14]
mov byte [esp + 0x198], 5
call fcn.00401810
mov edi, dword [esp + 0x24]
push 0x460bf0
push edi
call fcn.004389da
add esp, 8
test eax, eax
je 0x403f92
push 0x460bec
push edi
call fcn.004389da
add esp, 8
test eax, eax
je 0x403f92
push 0x460be8
push edi
call fcn.004389da
add esp, 8
test eax, eax
je 0x403f92
push 0x460be4
push edi
call fcn.004389da
add esp, 8
test eax, eax
je 0x403f92
push 0x460be0
push edi
call fcn.004389da
add esp, 8
test eax, eax
jne 0x404045
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402210
mov eax, dword [eax]
add esp, 0xc
call fcn.00401350
lea ecx, [esp + 0x14]
mov bl, al
call fcn.00401810
test bl, bl
je 0x40400b
push 0x460bdc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004022c0
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x1b0], 7
call fcn.00402210
add esp, 0x18
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x19c], 8
call fcn.00403c50
lea ecx, [esp + 0x14]
call fcn.00401810
jmp 0x404034
push 0x460bd8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004022c0
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x19c], 9
call fcn.00403c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x198], 5
call fcn.00401810
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x404050
mov ebx, dword [esp + 0x3c]
lea edx, [esp + 0x4c]
push edx
push ebx
call esi
cmp eax, ebp
je 0x404259
mov eax, dword [esp + 0x4c]
test al, 0x16
jne 0x404050
test ah, 1
jne 0x404050
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x14]
call fcn.00402cf0
push 3
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401d70
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x19c], 0xa
call fcn.00402050
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x198], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4040c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x24]
push 0x460bf0
push edi
call fcn.004389da
add esp, 8
test eax, eax
je 0x404129
push 0x460bec
push edi
call fcn.004389da
add esp, 8
test eax, eax
je 0x404129
push 0x460be8
push edi
call fcn.004389da
add esp, 8
test eax, eax
je 0x404129
push 0x460be4
push edi
call fcn.004389da
add esp, 8
test eax, eax
je 0x404129
push 0x460be0
push edi
call fcn.004389da
add esp, 8
test eax, eax
jne 0x404050
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00402210
mov eax, dword [eax]
add esp, 0xc
call fcn.00401350
mov bl, al
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404167
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
lea eax, [esp + 0x10]
je 0x404205
push 0x460bdc
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.004022c0
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x1b0], 0xb
call fcn.00402210
add esp, 0x18
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x19c], 0xc
call fcn.00403c50
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x198], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x198], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404050
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x404050
push 0x460bd8
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004022c0
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x19c], 0xd
call fcn.00403c50
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x198], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404050
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x404050
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x404385
push ebp
push ebp
lea ecx, [esp + 0x30]
push ecx
push 0x400
push eax
push ebp
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x2c]
call fcn.004032c0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x198], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x198], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x198], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40430e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x198], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404330
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1a0]
add eax, 0xfffffff0
mov dword [esp + 0x198], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40435c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x180]
pop ebx
call fcn.00438707
add esp, 0x18c
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x30]
cmp ecx, ebp
je 0x404293
mov eax, dword [esp + 0x34]
sub eax, ecx
sar eax, 2
cmp eax, ebp
je 0x404293
mov esi, dword [esp + 0x40]
add esi, 0xd0
mov ecx, esi
call fcn.004032c0
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00403af0
lea ecx, [esp + 0x2c]
call fcn.004032c0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x198], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x198], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40441b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x198], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404441
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x198], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404463
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1a0]
add eax, 0xfffffff0
mov dword [esp + 0x198], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40448f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x40435e
push 0x80070057
call fcn.00401130
int3