Function at 0x4021b0
Capabilities:
Access peb ldr_data
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4327b1
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x43c070]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x43c070]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x43d8f4]
mov esi, ecx
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x43d8f4
mov dword [esp + 0x10], 0xffffffff
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
xor edi, edi
mov dword [esp + 0x2a0], edi
mov edx, dword [0x43d8f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x43d8f4
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x2a0], 1
mov edx, dword [0x43d8f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x43d8f4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
cmp esi, edi
mov byte [esp + 0x2a0], 3
jne 0x402277
xor eax, eax
jmp 0x40228f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402280
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x18]
call fcn.004032b0
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402770
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4025ff
lea esi, [edi - 1]
cmp esi, edi
mov dword [esp + 0x10], esi
jae 0x4025e7
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + esi*4]
test edx, edx
jne 0x4022d3
xor eax, eax
jmp 0x4022ef
mov eax, edx
lea ebx, [eax + 2]
jmp 0x4022e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4022e0
sub eax, ebx
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.004032b0
mov eax, dword [esp + 0x10]
add esi, 1
cmp esi, eax
jb 0x4025e7
cmp esi, 1
jb 0x4025e7
cmp esi, edi
ja 0x4025e7
mov ecx, dword [esp + 0x1c]
lea ebx, [ecx + eax*4]
mov eax, dword [ebx]
sub eax, 0x10
sub edi, esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402342
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jbe 0x40235f
mov ecx, dword [esp + 0x1c]
lea edx, [edi*4]
push edx
lea esi, [ecx + esi*4]
push esi
push ebx
call fcn.0040dbb0
add esp, 0xc
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [esi - 0xc]
mov dword [esp + 0x20], eax
lea eax, [ecx - 1]
test eax, eax
jl 0x4025e7
cmp eax, ecx
jg 0x4025e7
movzx eax, word [esi + eax*2]
cmp ax, 0x5c
je 0x4023a0
push 1
push 0x4366dc
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402a60
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4023a8
xor eax, eax
jmp 0x4023bf
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4023b0
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x34]
call fcn.004032b0
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov edi, 0x4366f0
mov dword [esp + 0x10], edi
mov ecx, 1
sub ecx, dword [esi - 4]
sub edi, esi
lea ebx, [edx + 3]
sub eax, ebx
sar edi, 1
or eax, ecx
mov dword [esp + 0x2c], edx
jge 0x402406
mov ecx, ebx
lea eax, [esp + 0x14]
call fcn.00402b40
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
cmp edi, edx
ja 0x402411
lea eax, [esi + edi*2]
mov dword [esp + 0x10], eax
test ebx, ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [esi + edx*2], ecx
mov ax, word [eax + 4]
mov word [esi + edx*2 + 4], ax
jl 0x4025e7
cmp ebx, dword [esi - 8]
jg 0x4025e7
lea ecx, [esp + 0x3c]
push ecx
mov dword [esi - 0xc], ebx
push esi
mov word [esi + ebx*2], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x4025d9
jmp 0x402460
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x4366e0
lea edx, [esp + 0x6c]
push edx
call edi
test eax, eax
je 0x4025b6
push 0x4366e4
lea eax, [esp + 0x6c]
push eax
call edi
test eax, eax
je 0x4025b6
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x40249a
xor eax, eax
jmp 0x4024af
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4024a0
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x1c]
call fcn.004032b0
lea eax, [esp + 0x68]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4024c2
sub eax, edx
mov edx, dword [esp + 0x18]
mov edi, dword [edx - 0xc]
sar eax, 1
lea ecx, [esp + 0x68]
mov esi, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], ecx
lea ebx, [edi + eax]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub esi, edx
sub eax, ebx
sar esi, 1
or eax, ecx
jge 0x40250d
mov ecx, ebx
lea eax, [esp + 0x18]
call fcn.00402b40
mov edx, dword [esp + 0x18]
cmp esi, edi
ja 0x402518
lea eax, [edx + esi*2]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x38]
lea eax, [ecx + ecx]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea edx, [edx + edi*2]
push edx
call fcn.00413af0
add esp, 0xc
test ebx, ebx
jl 0x4025e7
mov edi, dword [esp + 0x18]
cmp ebx, dword [edi - 8]
jg 0x4025e7
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], 0
test byte [esp + 0x3c], 0x10
je 0x4025a0
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x24]
mov ebx, esi
jb 0x402576
lea eax, [esi + 1]
lea esi, [esp + 0x1c]
call fcn.004028d0
test al, al
je 0x4025f1
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea eax, [eax + ebx*4]
test eax, eax
mov byte [esp + 0x2a0], 4
je 0x402591
push eax
mov ecx, edi
call fcn.00402df0
add esi, 1
mov byte [esp + 0x2a0], 3
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x34]
push ecx
push edi
call fcn.0040a6a0
add esp, 8
test eax, eax
je 0x4025fb
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x3c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402460
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x4022b5
jmp 0x4025ff
push 0x80070057
call fcn.00402a10
push 0x8007000e
call fcn.00402a10
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x2a0], 2
cmp dword [esp + 0x1c], 0
je 0x402657
xor esi, esi
test edi, edi
jbe 0x40264a
nop
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + esi*4]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402643
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 1
cmp esi, edi
jb 0x402620
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0040df15
add esp, 4
mov byte [esp + 0x2a0], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40267f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2a0], 0xffffffff
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 0x4026d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0040da0d
mov esp, ebp
pop ebp
ret