Function at 0x40419c
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404aea
push eax
mov dword fs:[0], esp
sub esp, 0xa90
mov dword [ebp - 0x18], ecx
push ebx
push esi
lea ecx, [ebp - 0x11c]
push edi
call fcn.00419856
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.00419856
push 0xa
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 1
push 0
call fcn.00419936
push 0xa
lea ecx, [ebp - 0x130]
push 0
mov ebx, 2
call fcn.00419936
lea ecx, [ebp - 0x54]
call fcn.0041e05c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.0041e05c
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
call fcn.00402b91
test eax, eax
jne 0x404ac6
mov ecx, dword [ebp - 0x18]
call fcn.00402be0
test eax, eax
jne 0x404ac6
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x8c], 0
jne 0x4042b0
push 0xa607
call fcn.00402966
push str.Bad_FTP_Client__Trying_to_RETRieve_without_a_PORT_command_first_is_against_RFC1123_
mov ecx, dword [ebp - 0x18]
push 0x21
mov edx, dword [0x43ee50]
push dword [ecx + 0x23d8]
mov eax, dword [edx]
push dword [0x43ee50]
call dword [eax + 0xbc]
add esp, 0x10
mov byte [ebp - 4], bl
call fcn.00404acf
mov byte [ebp - 4], 1
call fcn.00404ad7
mov byte [ebp - 4], 0
call fcn.00404adf
mov dword [ebp - 4], 0xffffffff
call fcn.00404af4
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x18]
call fcn.0040282a
cmp dword [ebp + 0xc], 0
je 0x4043d2
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x4043d2
push eax
lea ecx, [ebp - 0x334]
push ecx
call fcn.0040f3fc
add esp, 8
cmp byte [ebp - 0x333], 0x7c
jne 0x4042ee
mov byte [ebp - 0x333], 0x3a
push 0x104
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x438]
push ecx
call fcn.0040f572
add esp, 0xc
lea ecx, [ebp - 0x438]
push 0x2a
push ecx
call fcn.0040ed64
add esp, 8
test eax, eax
jne 0x404367
push 0x3f
lea eax, [ebp - 0x438]
push eax
call fcn.0040ed64
add esp, 8
test eax, eax
jne 0x404367
lea eax, [ebp - 0x758]
lea ecx, [ebp - 0x438]
push eax
push ecx
call fcn.0041f68e
test eax, eax
je 0x404367
test byte [ebp - 0x748], 0x10
je 0x404367
push str..
lea eax, [ebp - 0x438]
push eax
call fcn.0040f3f8
add esp, 8
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x53c]
push eax
lea edx, [ebp - 0x438]
push ecx
push 0
push 0
push edx
call fcn.0040faaf
add esp, 0x14
cmp byte [ebp - 0x53c], 0
jne 0x4043a5
push 0x43dea8
lea eax, [ebp - 0x438]
push eax
call fcn.0040f3f8
add esp, 8
cmp byte [ebp - 0x230], 0
jne 0x4043c2
push 0x43dea4
lea eax, [ebp - 0x438]
push eax
call fcn.0040f3f8
add esp, 8
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x334]
push eax
push ecx
jmp 0x4043de
push 0x43deb4
lea eax, [ebp - 0x334]
push eax
call fcn.0040f3fc
add esp, 8
lea eax, [ebp - 0x334]
mov ecx, dword [ebp - 0x18]
push 4
push eax
call fcn.00406c35
test eax, eax
jne 0x404439
push 0xafcc
mov ecx, dword [ebp - 0x18]
call fcn.00402966
lea eax, [ebp - 0x334]
mov ecx, dword [ebp - 0x18]
push eax
push str.No_rights_to_list_path___s_
push 0x21
mov eax, dword [0x43ee50]
mov ebx, dword [eax]
push dword [ecx + 0x23d8]
push eax
call dword [ebx + 0xbc]
mov byte [ebp - 4], 2
add esp, 0x14
jmp 0x40427b
lea eax, [ebp - 0x640]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x53c]
lea eax, [ebp - 0x640]
push ecx
push 0
push section..data
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xc
call fcn.0040ed53
add esp, 4
test eax, eax
je 0x40448f
push 0x1012
lea ecx, [ebp - 0x53c]
push ecx
mov ecx, eax
call fcn.0041eee0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x34], eax
jmp 0x404499
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x34], 0
lea eax, [ebp - 0x24]
push eax
call fcn.0040fa6c
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.0040f8e4
add esp, 4
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x898]
lea edx, [ebp - 0x334]
push ecx
mov dword [ebp - 0x20], eax
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x404999
push section..data
lea ecx, [ebp - 0x54]
call fcn.0041e1d0
test byte [ebp - 0x898], 2
jne 0x404951
lea eax, [ebp - 0x86c]
lea ecx, [ebp - 0xa9c]
push eax
push ecx
call fcn.0040f3fc
add esp, 8
cmp dword [ebp + 8], 0
je 0x404524
cmp byte [ebp - 0xa9c], 0x2e
je 0x404951
cmp dword [ebp + 8], 0
jne 0x4047fa
test byte [ebp - 0x898], 0x10
mov eax, 0x43de84
jne 0x404537
mov eax, 0x43de80
push eax
lea ecx, [ebp - 0x54]
call fcn.0041e1d0
test byte [ebp - 0x898], 1
je 0x404550
push 0x43de7c
jmp 0x404555
push 0x43de78
lea ecx, [ebp - 0x60]
call fcn.0041e1d0
push str.___1_noone____nogroup
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x54]
push eax
lea edx, [ebp - 0xa8]
push eax
push ecx
push edx
call fcn.0041e28c
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 4
push ecx
call fcn.0041e28c
push eax
lea ecx, [ebp - 0x90]
push ecx
mov ebx, 6
mov byte [ebp - 4], 5
call fcn.0041e28c
push eax
lea ecx, [ebp - 0x84]
push ecx
mov byte [ebp - 4], bl
call fcn.0041e322
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
call fcn.0041e1b9
mov byte [ebp - 4], bl
call fcn.00404aab
mov byte [ebp - 4], 5
call fcn.00404aa0
mov byte [ebp - 4], 4
call fcn.00404a95
mov byte [ebp - 4], 3
call fcn.00404a8a
mov eax, dword [ebp - 0x87c]
lea ecx, [ebp - 0x48]
add eax, dword [ebp - 0x878]
push eax
push str._8ld
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x54]
lea eax, [ebp - 0xc0]
push 0x43de54
mov ebx, 8
push ecx
push edx
push eax
call fcn.0041e322
push eax
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], bl
push ecx
call fcn.0041e322
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 9
call fcn.0041e1b9
mov byte [ebp - 4], bl
call fcn.00404a7f
mov byte [ebp - 4], 3
call fcn.00404a74
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x884]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xe]
push ecx
lea eax, [ebp - 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov ax, word [ebp - 0xe]
push 3
and ax, 0x1e0
lea ecx, [ebp - 0x48]
shr ax, 5
movzx eax, ax
imul eax, eax, 3
add eax, 0x43de29
push eax
push ecx
call fcn.0040f510
add esp, 0xc
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x54]
lea eax, [ebp - 0xd8]
push 0x43de54
mov ebx, 0xa
mov byte [ebp - 0x45], 0
push ecx
push edx
push eax
call fcn.0041e322
push eax
lea ecx, [ebp - 0xcc]
push ecx
mov byte [ebp - 4], bl
call fcn.0041e322
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xb
call fcn.0041e1b9
mov byte [ebp - 4], bl
call fcn.00404a69
mov byte [ebp - 4], 3
call fcn.00404a5e
xor eax, eax
mov ax, word [ebp - 0xe]
and eax, 0x1f
push eax
push 0x43de28
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x54]
lea eax, [ebp - 0xf0]
push 0x43de54
mov ebx, 0xc
push ecx
push edx
push eax
call fcn.0041e322
push eax
lea ecx, [ebp - 0xe4]
push ecx
mov byte [ebp - 4], bl
call fcn.0041e322
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xd
call fcn.0041e1b9
mov byte [ebp - 4], bl
call fcn.00404a53
mov byte [ebp - 4], 3
call fcn.00404a48
mov ax, word [ebp - 0xe]
shr ax, 9
movzx eax, ax
add eax, 0x50
cmp eax, dword [ebp - 0x20]
jge 0x4047a2
add eax, 0x76c
lea ecx, [ebp - 0x34]
push eax
push str.__4d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x108]
push ecx
push edx
push eax
call fcn.0041e322
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xe
call fcn.0041e1b9
mov byte [ebp - 4], 3
call fcn.00404a32
jmp 0x4047fa
mov ax, word [ebp - 0x10]
and ax, 0x7e0
shr ax, 5
movzx ecx, ax
mov ax, word [ebp - 0x10]
push ecx
shr ax, 0xb
lea edx, [ebp - 0x2c]
movzx ecx, ax
push ecx
push str._02d:_02d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x54]
lea eax, [ebp - 0xfc]
push ecx
push edx
push eax
call fcn.0041e322
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xf
call fcn.0041e1b9
mov byte [ebp - 4], 3
call fcn.00404a3d
push 0x43de10
lea eax, [ebp - 0xa9c]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x78]
push edx
call fcn.0041e322
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x10
push ecx
call fcn.0041e322
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x11
call fcn.0041e1b9
mov byte [ebp - 4], 0x10
call fcn.00404abe
mov byte [ebp - 4], 3
call fcn.00404ab6
mov esi, dword [ebp - 0x114]
mov edi, 0
dec esi
mov eax, 1
js 0x404855
xor eax, eax
test eax, eax
jne 0x404885
mov ecx, esi
mov eax, dword [ebp - 0x118]
imul ecx, ecx, 0xc
lea edx, [ebp - 0xa9c]
push edx
push dword [ecx + eax]
call fcn.0040ec68
add esp, 8
test eax, eax
mov eax, 1
jl 0x404881
xor eax, eax
test eax, eax
je 0x4048b6
lea eax, [ebp - 0xa9c]
lea ecx, [ebp - 0x11c]
push eax
push dword [ebp - 0x114]
call fcn.00419aca
push dword [ebp - 0x54]
push dword [ebp - 0x128]
lea ecx, [ebp - 0x130]
call fcn.00419aca
jmp 0x404951
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0xa9c]
push ecx
push dword [eax]
call fcn.0040ec68
add esp, 8
test eax, eax
jle 0x4048f0
push 1
lea eax, [ebp - 0xa9c]
push eax
lea ecx, [ebp - 0x11c]
push 0
call fcn.00419afa
push 1
push dword [ebp - 0x54]
push 0
jmp 0x404946
cmp esi, 1
jle 0x40492b
lea eax, [esi + edi]
lea ecx, [ebp - 0xa9c]
cdq
sub eax, edx
push ecx
sar eax, 1
mov edx, dword [ebp - 0x118]
mov ebx, eax
imul eax, eax, 0xc
push dword [eax + edx]
call fcn.0040ec68
add esp, 8
test eax, eax
jle 0x404922
mov esi, ebx
jmp 0x404924
mov edi, ebx
lea eax, [edi + 1]
cmp eax, esi
jl 0x4048f5
push 1
lea eax, [ebp - 0xa9c]
push eax
lea ecx, [ebp - 0x11c]
push esi
call fcn.00419afa
push 1
push dword [ebp - 0x54]
push esi
lea ecx, [ebp - 0x130]
call fcn.00419afa
lea eax, [ebp - 0x898]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4044d7
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x128], esi
jle 0x404999
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x12c]
add eax, esi
inc edi
mov ecx, dword [ecx + 0x34]
add esi, 0xc
push dword [eax + 4]
push dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x30]
cmp dword [ebp - 0x128], edi
jg 0x404975
mov ecx, dword [ebp - 0x18]
xor esi, esi
mov ecx, dword [ecx + 0x34]
push esi
push esi
mov eax, dword [ecx]
call dword [eax + 0x20]
lea eax, [ebp - 0x53c]
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x2a0
push eax
call fcn.0040f3fc
add esp, 8
mov ecx, dword [ebp - 0x18]
push 3
call fcn.00407196
mov ecx, dword [ebp - 0x18]
test eax, eax
push dword [ebp + 0xc]
mov eax, section..data
mov dword [ecx + 0x3c0], esi
mov dword [ecx + 0x3c4], esi
mov dword [ecx + 0x3bc], esi
jne 0x4049f0
mov eax, 0x43de0c
cmp dword [ebp + 8], 0
push eax
mov eax, str.NLST
jne 0x404a01
mov eax, str.LIST
push eax
mov ecx, dword [ebp - 0x18]
push str._s_started__ssuccessfully_for_path_wildcard__s
mov edx, dword [0x43ee50]
push 0x43
mov eax, dword [edx]
push dword [ecx + 0x23d8]
push dword [0x43ee50]
call dword [eax + 0xbc]
mov byte [ebp - 4], 2
add esp, 0x1c
jmp 0x40427b
mov byte [ebp - 4], 2
jmp 0x40427b