Function at 0x402220
Capabilities:
Check for peb beingdebugged flag
Enumerate files on windows
Enumerate files recursively
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x416687
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x41c028]
xor eax, esp
mov dword [esp + 0x2f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41c028]
xor eax, esp
push eax
lea eax, [esp + 0x308]
mov dword fs:[0], eax
mov eax, dword [esp + 0x320]
mov ecx, dword [esp + 0x324]
mov ebp, dword [esp + 0x318]
mov edi, dword [esp + 0x31c]
xor ebx, ebx
push 0x24c
lea edx, [esp + 0xbc]
push ebx
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xc0], ebx
call fcn.0040e6d0
xor eax, eax
add esp, 0xc
mov word [esp + 0x9c], ax
push ebx
mov eax, 0x418f44
lea esi, [esp + 0x9c]
mov dword [esp + 0xb4], 7
mov dword [esp + 0xb0], ebx
call fcn.00403050
mov dword [esp + 0x310], ebx
xor ecx, ecx
push ebx
mov eax, 0x418f44
lea esi, [esp + 0x80]
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], cx
call fcn.00403050
mov eax, edi
mov byte [esp + 0x310], 1
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402310
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x9c]
call fcn.00403050
cmp dword [esp + 0xb0], 8
mov eax, dword [esp + 0x9c]
jae 0x402346
lea eax, [esp + 0x9c]
mov ecx, dword [esp + 0xac]
mov edx, 0x5c
cmp dx, word [eax + ecx*2 - 2]
je 0x40236c
push 1
mov eax, 0x418ebc
lea ecx, [esp + 0x9c]
call fcn.00402f70
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402371
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x80]
call fcn.00403050
mov eax, dword [esp + 0x80]
mov esi, 8
cmp dword [esp + 0x94], esi
jae 0x4023ab
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x90]
mov edx, 0x5c
cmp dx, word [eax + ecx*2 - 2]
je 0x4023d1
push 1
mov eax, 0x418ebc
lea ecx, [esp + 0x80]
call fcn.00402f70
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x64]
push eax
call fcn.004034a0
add esp, 8
mov byte [esp + 0x310], 2
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], esi
jae 0x4023fc
lea eax, [esp + 0x64]
lea ecx, [esp + 0xb4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x402498
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push ebx
push ebx
push eax
call fcn.004148f0
mov edi, eax
mov eax, dword [esp + 0x64]
add edi, 0x2890000
mov ebp, edx
mov esi, 8
adc ebp, 0x15
cmp dword [esp + 0x78], esi
jae 0x40244b
lea eax, [esp + 0x64]
push eax
push ebp
push edi
push 0x28a
push str..FilePublic.cpp
push 0x418ec8
call fcn.004019b0
add esp, 0x18
mov byte [esp + 0x310], 1
cmp dword [esp + 0x78], esi
jb 0x402480
mov edx, dword [esp + 0x64]
push edx
call fcn.00409895
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], ax
jmp 0x40288d
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], esi
jae 0x4024af
lea eax, [esp + 0x80]
push eax
call fcn.00402920
mov edi, eax
movzx ecx, dx
xor eax, eax
add esp, 4
or eax, ecx
mov ebp, edx
mov dword [esp + 0x18], ebp
je 0x402527
mov eax, dword [esp + 0x80]
mov esi, 8
cmp dword [esp + 0x94], esi
jae 0x4024e5
lea eax, [esp + 0x80]
push eax
push ebp
push edi
push 0x292
push str..FilePublic.cpp
push 0x418ec8
call fcn.004019b0
add esp, 0x18
mov byte [esp + 0x310], 1
cmp dword [esp + 0x78], esi
jb 0x40251a
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00409895
add esp, 4
mov dword [esp + 0x78], 7
jmp 0x402872
xor eax, eax
mov word [esp + 0x48], ax
push ebx
mov eax, 0x418f44
lea esi, [esp + 0x48]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
call fcn.00403050
mov byte [esp + 0x310], 3
xor ecx, ecx
push ebx
mov eax, 0x418f44
lea esi, [esp + 0x2c]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], cx
call fcn.00403050
mov edx, 0x2e
mov byte [esp + 0x310], 4
cmp dx, word [esp + 0xe0]
jne 0x4025a6
test byte [esp + 0xb4], 0x10
je 0x4025a6
mov byte [esp + 0x310], 3
cmp dword [esp + 0x40], 8
jmp 0x402727
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x4c]
call fcn.00402eb0
lea eax, [esp + 0xe0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4025c3
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xe4]
lea ecx, [esp + 0x48]
call fcn.00402f70
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x84]
lea ecx, [esp + 0x30]
call fcn.00402eb0
lea eax, [esp + 0xe0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402600
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xe4]
lea ecx, [esp + 0x2c]
call fcn.00402f70
test byte [esp + 0xb4], 0x10
mov ecx, dword [esp + 0x48]
mov esi, 8
je 0x4026e8
cmp dword [esp + 0x5c], esi
jae 0x402641
lea ecx, [esp + 0x48]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x40264f
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
push edx
push ecx
push eax
call fcn.00402220
mov edi, eax
movzx ecx, dx
xor eax, eax
add esp, 0x10
or eax, ecx
mov ebp, edx
mov dword [esp + 0x18], ebp
je 0x40271b
push ebp
push edi
push 0x2ac
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
mov byte [esp + 0x310], 3
cmp dword [esp + 0x40], esi
jb 0x4026ac
mov eax, dword [esp + 0x2c]
push eax
call fcn.00409895
add esp, 4
xor ecx, ecx
mov esi, 7
mov byte [esp + 0x310], 2
cmp dword [esp + 0x5c], 8
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], cx
jb 0x4026dc
mov edx, dword [esp + 0x48]
push edx
call fcn.00409895
add esp, 4
xor eax, eax
mov word [esp + 0x48], ax
jmp 0x4027fd
cmp dword [esp + 0x5c], esi
jae 0x4026f2
lea ecx, [esp + 0x48]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x402700
lea eax, [esp + 0x2c]
push ecx
push eax
call fcn.00401db0
mov edi, eax
movzx ecx, dx
xor eax, eax
add esp, 8
or eax, ecx
mov ebp, edx
mov dword [esp + 0x18], ebp
jne 0x402792
mov byte [esp + 0x310], 3
cmp dword [esp + 0x40], esi
jb 0x402736
mov eax, dword [esp + 0x2c]
push eax
call fcn.00409895
add esp, 4
mov byte [esp + 0x310], 2
xor ecx, ecx
cmp dword [esp + 0x5c], 8
mov esi, 7
mov word [esp + 0x2c], cx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
jb 0x402766
mov edx, dword [esp + 0x48]
push edx
call fcn.00409895
add esp, 4
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xb4]
push ecx
xor eax, eax
push edx
mov word [esp + 0x50], ax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402527
jmp 0x402805
push ebp
push edi
push 0x2b6
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
mov byte [esp + 0x310], 3
cmp dword [esp + 0x40], esi
jb 0x4027c6
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00409895
add esp, 4
xor edx, edx
mov esi, 7
mov byte [esp + 0x310], 2
cmp dword [esp + 0x5c], 8
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
jb 0x4027f6
mov eax, dword [esp + 0x48]
push eax
call fcn.00409895
add esp, 4
xor ecx, ecx
mov word [esp + 0x48], cx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], esi
movzx ecx, word [esp + 0x18]
xor eax, eax
or eax, ecx
je 0x402852
push ebp
push edi
push 0x2bd
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
mov byte [esp + 0x310], 1
cmp dword [esp + 0x78], 8
jb 0x402845
mov edx, dword [esp + 0x64]
push edx
call fcn.00409895
add esp, 4
xor eax, eax
mov dword [esp + 0x78], esi
mov word [esp + 0x64], ax
jmp 0x402879
mov byte [esp + 0x310], 1
cmp dword [esp + 0x78], 8
jb 0x40286e
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00409895
add esp, 4
mov dword [esp + 0x78], esi
xor edx, edx
mov word [esp + 0x64], dx
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x78], ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 8
mov byte [esp + 0x310], bl
cmp dword [esp + 0x94], esi
jb 0x4028ad
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00409895
add esp, 4
xor edx, edx
mov dword [esp + 0x310], 0xffffffff
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], dx
cmp dword [esp + 0xb0], esi
jb 0x4028ed
mov eax, dword [esp + 0x9c]
push eax
call fcn.00409895
add esp, 4
mov edx, ebp
mov eax, edi
mov ecx, dword [esp + 0x308]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f0]
xor ecx, esp
call fcn.00409551
add esp, 0x300
ret