Function at 0x421280
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0xc8c
mov eax, dword [0x66a8c4]
xor eax, esp
mov dword [esp + 0xc84], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc98]
push esi
mov esi, dword [esp + 0xca4]
push edi
mov edi, dword [esp + 0xca4]
xor eax, eax
push 0x206
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0xa92]
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 0
mov word [esp + 0xa94], ax
call fcn.00591690
add esp, 0xc
xor edx, edx
push 0x1fe
push edx
lea eax, [esp + 0x68a]
push eax
mov word [esp + 0x68c], dx
call fcn.00591690
add esp, 0xc
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0x48a]
push edx
mov word [esp + 0x48c], cx
call fcn.00591690
lea ecx, [esp + 0x48c]
add esp, 0xc
mov eax, edi
sub ecx, edi
lea esp, [esp]
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x421330
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push edi
lea eax, [esp + 0x684]
push str._s.lnk
push eax
call ebx
add esp, 0xc
push ebp
lea ecx, [esp + 0xa8c]
push str._s.
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xa8c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x421390
xor al, al
jmp 0x421682
cmp word [esp + 0x54], 0x2e
je 0x421586
mov ax, word [esp + 0x56]
test ax, ax
je 0x421586
cmp ax, 0x2e
jne 0x4213bc
cmp word [esp + 0x58], 0
je 0x421586
test byte [esp + 0x28], 0x10
je 0x42148e
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x88a]
push edx
mov word [esp + 0x88c], cx
call fcn.00591690
add esp, 0xc
lea eax, [esp + 0x54]
push eax
push ebp
lea ecx, [esp + 0x888]
push str._s_s_
push ecx
call ebx
add esp, 0x10
cmp byte [esp + 0xcac], 0
jne 0x42145f
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x282]
push eax
mov word [esp + 0x284], dx
call fcn.00591690
add esp, 0xc
lea ecx, [esp + 0x680]
push ecx
lea edx, [esp + 0x58]
push edx
push ebp
lea eax, [esp + 0x284]
push str._s_s_s
push eax
call ebx
add esp, 0x14
lea ecx, [esp + 0x278]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42169d
mov edx, dword [esp + 0xcac]
mov ecx, dword [esp + 0x24]
push edx
push esi
push edi
lea eax, [esp + 0x88c]
push eax
call fcn.00421280
movzx eax, al
mov dword [esp + 0x14], eax
test eax, eax
jne 0x42166f
jmp 0x421586
cmp byte [esp + 0xcac], 0
je 0x4215a7
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4214a3
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x480]
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4214c0
sub eax, esi
sar eax, 1
mov esi, eax
test edx, edx
jle 0x421586
test esi, esi
jle 0x421586
cmp edx, esi
jl 0x421586
lea ecx, [esp + 0x480]
push ecx
call fcn.005932a0
lea edx, [esp + 0x58]
add esp, 4
push edx
mov edi, eax
call fcn.005932a0
add esp, 4
push edi
push eax
call fcn.00592a95
add esp, 8
test eax, eax
je 0x421582
xor eax, eax
test esi, esi
jle 0x421534
lea esp, [esp]
mov cx, word [esp + eax*2 + 0x54]
cmp cx, word [esp + eax*2 + 0x480]
jne 0x421582
inc eax
cmp eax, esi
jl 0x421520
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x282]
push eax
mov word [esp + 0x284], dx
call fcn.00591690
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
push ebp
lea edx, [esp + 0x280]
push 0x6035f0
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x278]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4216c3
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42166f
mov esi, dword [esp + 0x18]
jmp 0x421390
lea ecx, [esp + 0x680]
push ecx
call fcn.005932a0
lea edx, [esp + 0x58]
add esp, 4
push edx
mov esi, eax
call fcn.005932a0
add esp, 4
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4215ec
test cx, cx
je 0x4215e8
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4215ec
add eax, 4
add esi, 4
test cx, cx
jne 0x4215c6
xor eax, eax
jmp 0x4215f1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x421586
push 0x206
push eax
lea ecx, [esp + 0x282]
push ecx
mov word [esp + 0x284], ax
call fcn.00591690
add esp, 0xc
lea edx, [esp + 0x54]
push edx
push ebp
lea eax, [esp + 0x280]
push 0x6036dc
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x278]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421586
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x278]
mov ecx, eax
mov dword [esp + 0x14], 1
sub edx, ecx
jmp 0x421660
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x421660
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
setne al
mov ecx, dword [esp + 0xc94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00590c4b
add esp, 0xc8c
ret 0x10
lea eax, [esp + 0x278]
mov edx, esi
mov ecx, eax
mov dword [esp + 0x14], 1
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4216b2
jmp 0x42166f
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x278]
mov ecx, eax
mov dword [esp + 0x14], 1
sub edx, ecx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4216e0
jmp 0x42166f