Function at 0x40bd50
Capabilities:
Access peb ldr_data
Enumerate files on windows
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4532d9
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x46eaa4]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46eaa4]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18c]
mov eax, dword [esp + 0x194]
mov ebp, dword [esp + 0x188]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x190]
add edi, 0xfffffff0
push edi
mov dword [esp + 0x184], 0
call fcn.00401740
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
push 1
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x188], 1
call fcn.0040a110
mov eax, dword [eax]
push 0x4587d8
push eax
call fcn.0043dddd
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40be1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40be32
push 1
push 0x4587d8
lea ecx, [esp + 0x20]
call fcn.0040a290
push 3
push 0x4587e0
lea ecx, [esp + 0x20]
call fcn.0040a290
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
jne 0x40be78
lea eax, [ebx - 0x10]
mov byte [esp + 0x180], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40c058
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40be94
mov esi, dword [esp + 0x24]
test byte [esp + 0x34], 0x10
je 0x40c00e
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x18]
call fcn.00407ef0
mov edx, dword [esp + 0x14]
push 0x4587d0
push edx
mov byte [esp + 0x188], 2
call fcn.0043dddd
add esp, 8
test eax, eax
setne al
test al, al
je 0x40bfe4
mov eax, dword [esp + 0x14]
push 0x4587dc
push eax
call fcn.0043dddd
add esp, 8
test eax, eax
setne al
test al, al
je 0x40bfe4
cmp dword [esp + 0x34], 0x16
je 0x40bfe4
mov ecx, dword [esp + 0x30]
push 0xffff0003
push ecx
push 0
push 0
push 0
push 6
push 1
lea edx, [esp + 0x7c]
push edx
push 0x23
mov ecx, ebp
call fcn.00418cab
push edi
mov esi, eax
call fcn.00401740
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x188], 3
call fcn.0040a110
mov eax, dword [eax]
push 0x4587d8
push eax
call fcn.0043dddd
add esp, 8
test eax, eax
mov eax, dword [esp + 0x28]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40bf91
push 0x4587d8
lea ecx, [esp + 0x20]
call fcn.0040b530
lea eax, [esp + 0x60]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40bf98
sub eax, edx
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040a290
mov ecx, dword [esp + 0x20]
push esi
call fcn.00408f20
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x180], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bfe4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x180], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c01d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c01d
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x24]
push esi
call fcn.0040ba10
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40be90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x180], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c064
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or edx, 0xffffffff
lea ecx, [edi + 0xc]
mov dword [esp + 0x180], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c088
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.0043d9be
add esp, 0x170
ret 0x10