Function at 0x4122b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5519b1
mov eax, dword fs:[0]
push eax
sub esp, 0x908
mov eax, dword [0x59de30]
xor eax, esp
mov dword [esp + 0x900], eax
push ebx
push esi
push edi
mov eax, dword [0x59de30]
xor eax, esp
push eax
lea eax, [esp + 0x918]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
mov esi, dword [ebp + 8]
xor edi, edi
test esi, esi
je 0x4126da
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push edi
push 0xffffffffffffffff
push esi
push edi
push 0xfde9
call ebx
cmp eax, 1
jle 0x4126da
mov ecx, dword [esp + 0x10]
push esi
call fcn.00412710
cmp al, 1
je 0x4126d6
push 0x103
lea eax, [esp + 0x2f1]
push edi
push eax
mov byte [esp + 0x2f8], 0
call fcn.004de2a0
add esp, 0xc
lea eax, [esp + 0x2ec]
push edi
push eax
call fcn.004050f0
push 1
push 0x57d56c
lea eax, [esp + 0x2fc]
push 0x104
push eax
call fcn.004dcc52
push 3
push 0x57e2c0
lea eax, [esp + 0x30c]
push 0x104
push eax
call fcn.004dcc52
add esp, 0x28
cmp byte [esp + 0x2ec], 0
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], edi
mov byte [esp + 0x14], 0
jne 0x4123af
xor ecx, ecx
jmp 0x4123c9
lea ecx, [esp + 0x2ec]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4123c0
sub ecx, edx
push ecx
lea eax, [esp + 0x2f0]
push eax
lea ecx, [esp + 0x1c]
call fcn.004014f0
push 2
push 0x57e2d8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x928], 0
call fcn.004139f0
xor eax, eax
push 0x206
push eax
mov word [esp + 0x70c], ax
lea eax, [esp + 0x70e]
push eax
call fcn.004de2a0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [esp + 0x504], ax
lea eax, [esp + 0x506]
push eax
call fcn.004de2a0
add esp, 0xc
cmp dword [esp + 0x28], 0x10
push 0x104
lea ecx, [esp + 0x708]
push ecx
push 0xffffffffffffffff
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
push 0
push 0xfde9
call ebx
push 0x104
lea eax, [esp + 0x500]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x708]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41249a
mov edi, 5
jmp 0x4126c3
push 0x557600
lea ecx, [esp + 0x30]
call fcn.00405af0
mov byte [esp + 0x920], 1
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x4124c0
cmp word [esp + 0x88], 0
jne 0x4124cf
xor eax, eax
jmp 0x4124ef
lea eax, [esp + 0x88]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4124e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x34]
call fcn.00403d70
cmp word [esp + 0x4fc], 0
jne 0x412510
xor ecx, ecx
jmp 0x41252f
lea ecx, [esp + 0x4fc]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412520
sub ecx, edx
sar ecx, 1
push ecx
push 0
lea eax, [esp + 0x504]
push eax
lea ecx, [esp + 0x38]
call fcn.004134a0
cmp eax, 0xffffffff
jne 0x412560
lea eax, [esp + 0x5c]
push eax
push ebx
call esi
test eax, eax
jne 0x4124c0
lea edi, [eax + 5]
jmp 0x4126a9
push 0
push 0x57ddf0
lea ecx, [esp + 0x34]
call fcn.00412f70
push eax
push 0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x38]
call fcn.0040e2d0
push 0x3f
lea eax, [esp + 0x2b1]
push 0
mov byte [esp + 0x928], 2
push eax
mov byte [esp + 0x2b8], 0
call fcn.004de2a0
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
cmp dword [esp + 0x58], 8
push 0
push 0
push 0x40
lea ecx, [esp + 0x2b8]
push ecx
push 0xffffffffffffffff
lea eax, [esp + 0x58]
cmovae eax, dword [esp + 0x58]
push eax
push 0
push 0xfde9
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2ac]
push eax
call fcn.00412710
cmp al, 1
je 0x4126a0
push 0x103
lea eax, [esp + 0x3f9]
push 0
push eax
mov byte [esp + 0x400], 0
call fcn.004de2a0
add esp, 0xc
cmp dword [esp + 0x40], 8
push 0
push 0
push 0x104
lea ecx, [esp + 0x400]
push ecx
push 0xffffffffffffffff
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
push 0
push 0xfde9
call esi
push 1
push 0x57d56c
lea eax, [esp + 0x2f4]
push 0x104
push eax
call fcn.004dcc52
lea ecx, [esp + 0x404]
add esp, 0x10
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412660
sub ecx, edx
push ecx
lea eax, [esp + 0x3f8]
push eax
lea eax, [esp + 0x2f4]
push 0x104
push eax
call fcn.004dcc52
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0x2ec]
push 1
push 0
push 0
push eax
call fcn.0040ec80
mov edi, eax
lea ecx, [esp + 0x44]
call fcn.00403a50
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x40], 8
jb 0x4126c3
push dword [esp + 0x2c]
call fcn.004daf24
add esp, 4
cmp dword [esp + 0x28], 0x10
jb 0x4126d6
push dword [esp + 0x14]
call fcn.004daf24
add esp, 4
mov eax, edi
jmp 0x4126df
mov eax, 4
mov ecx, dword [esp + 0x918]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x900]
xor ecx, esp
call fcn.004da4c1
mov esp, ebp
pop ebp
ret 4