Function at 0x597490
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b12f5
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x762dc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x2b5], 0
lea ecx, [ebp + 8]
call fcn.00461a70
push eax
push str._s
lea eax, [ebp - 0x114]
push eax
call fcn.0065c981
add esp, 0xc
lea ecx, [ebp - 0x2b4]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0xffffffff
jne 0x59752f
mov al, byte [ebp - 0x2b5]
mov byte [ebp - 0x2be], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00462020
mov al, byte [ebp - 0x2be]
jmp 0x597b99
movzx ecx, byte [ebp - 0x2b5]
test ecx, ecx
je 0x59753f
jmp 0x597b6b
lea edx, [ebp - 0x288]
mov dword [ebp - 0x2cc], edx
push 0x6db5c8
mov eax, dword [ebp - 0x2cc]
push eax
call fcn.0065cc50
add esp, 8
test eax, eax
je 0x59757b
push 0x6db5cc
mov ecx, dword [ebp - 0x2cc]
push ecx
call fcn.0065cc50
add esp, 8
test eax, eax
jne 0x597580
jmp 0x597b4f
mov edx, dword [ebp - 0x2b4]
and edx, 0x10
je 0x597590
jmp 0x597b4f
xor eax, eax
je 0x5975a8
mov ecx, dword [ebp - 0x2cc]
push ecx
push str.starting__s
call fcn.005aaeb0
add esp, 8
mov edx, dword [ebp - 0x2cc]
push edx
lea ecx, [ebp - 0x12c]
call fcn.00461700
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2cc]
push eax
push 0x6db5dc
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x174]
push edx
call fcn.00461440
add esp, 0xc
mov dword [ebp - 0x2e8], eax
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x2dc], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2dc]
push ecx
lea edx, [ebp - 0x144]
push edx
call fcn.004619d0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x174]
call fcn.00462020
xor eax, eax
je 0x597635
lea ecx, [ebp - 0x144]
call fcn.00461a70
push eax
push str.path__s
call fcn.005aaeb0
add esp, 8
push fcn.00661136
lea ecx, [ebp - 0x2f0]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.00460e20
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00460de0
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x2f4]
push edx
lea ecx, [ebp - 0x12c]
call fcn.00460e20
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2ec]
push ecx
call fcn.00596610
add esp, 0x14
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x15c]
push eax
call fcn.00598f20
add esp, 8
mov byte [ebp - 4], 5
xor ecx, ecx
je 0x5976bf
lea ecx, [ebp - 0x15c]
call fcn.00461a70
push eax
push str.ext__s
call fcn.005aaeb0
add esp, 8
mov byte [ebp - 0x2bd], 0
mov byte [ebp - 0x2b6], 0
push 0x79f4b0
call fcn.0051ad50
add esp, 4
mov dword [ebp - 0x2c4], eax
push 0x79f4b0
call fcn.00598cd0
add esp, 4
mov dword [ebp - 0x2e0], eax
jmp 0x597704
mov edx, dword [ebp - 0x2c4]
add edx, 0x1c
mov dword [ebp - 0x2c4], edx
mov eax, dword [ebp - 0x2c4]
cmp eax, dword [ebp - 0x2e0]
jae 0x59777a
xor ecx, ecx
je 0x59773b
lea ecx, [ebp - 0x15c]
call fcn.00461a70
push eax
mov ecx, dword [ebp - 0x2c4]
call fcn.00461a70
push eax
push str.is__s____s
call fcn.005aaeb0
add esp, 0xc
mov edx, dword [ebp - 0x2c4]
push edx
mov ecx, dword [ebp - 0x2c4]
call fcn.0051ccf0
push eax
push 0
lea ecx, [ebp - 0x15c]
call fcn.00599030
test eax, eax
jne 0x597775
mov byte [ebp - 0x2bd], 1
mov eax, dword [ebp - 0x2c4]
mov cl, byte [eax + 0x18]
mov byte [ebp - 0x2b6], cl
jmp 0x5976f5
movzx edx, byte [ebp - 0x2bd]
test edx, edx
je 0x597b22
xor eax, eax
je 0x5977b2
lea ecx, [ebp - 0x15c]
call fcn.00461a70
push eax
lea ecx, [ebp - 0x12c]
call fcn.00461a70
push eax
push str.verify__s_____s
call fcn.005aaeb0
add esp, 0xc
mov byte [ebp - 0x2b7], 0
push 0x79f540
call fcn.0051ad50
add esp, 4
mov dword [ebp - 0x2bc], eax
push 0x79f540
call fcn.00598ce0
add esp, 4
mov dword [ebp - 0x2e4], eax
jmp 0x5977f0
mov ecx, dword [ebp - 0x2bc]
add ecx, 0x20
mov dword [ebp - 0x2bc], ecx
mov edx, dword [ebp - 0x2bc]
cmp edx, dword [ebp - 0x2e4]
jae 0x597a36
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x2bc]
call fcn.00463030
test eax, eax
jne 0x597a31
xor ecx, ecx
je 0x597845
lea ecx, [ebp - 0x12c]
call fcn.00461a70
push eax
mov ecx, dword [ebp - 0x2bc]
call fcn.00461a70
push eax
push str.found__s_s
call fcn.005aaeb0
add esp, 0xc
lea ecx, [ebp - 0x144]
call fcn.00461a70
push eax
call fcn.005affd0
add esp, 4
mov dword [ebp - 0x2d0], eax
mov edx, dword [ebp - 0x294]
mov dword [ebp - 0x2d4], edx
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 0x2d4]
je 0x59792a
xor edx, edx
je 0x5978a2
mov eax, dword [ebp - 0x2d4]
push eax
mov ecx, dword [ebp - 0x2bc]
mov edx, dword [ecx + 0x18]
push edx
push str.wrong_size__u_u
call fcn.005aaeb0
add esp, 0xc
mov byte [ebp - 0x2b5], 1
mov eax, 1
test eax, eax
je 0x5978d2
lea ecx, [ebp - 0x144]
call fcn.00461a70
push eax
mov ecx, dword [ebp - 0x2d4]
push ecx
push str.wrong_size__u_for__s
call fcn.005aaeb0
add esp, 0xc
mov dl, byte [ebp - 0x2b5]
mov byte [ebp - 0x2bf], dl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x15c]
call fcn.00462020
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.00462020
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.00462020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00462020
mov al, byte [ebp - 0x2bf]
jmp 0x597b99
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [ebp - 0x2d0]
je 0x5979e4
xor edx, edx
je 0x597961
mov eax, dword [ebp - 0x2d0]
push eax
mov ecx, dword [ebp - 0x2bc]
mov edx, dword [ecx + 0x1c]
push edx
push str.wrong_crc32__u_u
call fcn.005aaeb0
add esp, 0xc
mov byte [ebp - 0x2b5], 1
mov eax, 1
test eax, eax
je 0x597991
lea ecx, [ebp - 0x144]
call fcn.00461a70
push eax
mov ecx, dword [ebp - 0x2d0]
push ecx
push str.wrong_crc32__u_for__s
call fcn.005aaeb0
add esp, 0xc
mov dl, byte [ebp - 0x2b5]
mov byte [ebp - 0x2c0], dl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x15c]
call fcn.00462020
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.00462020
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.00462020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00462020
mov al, byte [ebp - 0x2c0]
jmp 0x597b99
xor eax, eax
je 0x597a06
mov ecx, dword [ebp - 0x2d4]
push ecx
mov edx, dword [ebp - 0x2bc]
mov eax, dword [edx + 0x18]
push eax
push str.right_size__u_u
call fcn.005aaeb0
add esp, 0xc
xor ecx, ecx
je 0x597a28
mov edx, dword [ebp - 0x2d0]
push edx
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [eax + 0x1c]
push ecx
push str.right_crc32__u_u
call fcn.005aaeb0
add esp, 0xc
mov byte [ebp - 0x2b7], 1
jmp 0x597a36
jmp 0x5977e1
movzx edx, byte [ebp - 0x2b7]
test edx, edx
jne 0x597aed
movzx eax, byte [ebp - 0x2b6]
test eax, eax
je 0x597aed
xor ecx, ecx
je 0x597a71
lea ecx, [ebp - 0x12c]
call fcn.00461a70
push eax
push str.not_found__s
call fcn.005aaeb0
add esp, 8
mov byte [ebp - 0x2b5], 1
mov edx, 1
test edx, edx
je 0x597a9a
lea ecx, [ebp - 0x144]
call fcn.00461a70
push eax
push str.ambiguous_file_for__s
call fcn.005aaeb0
add esp, 8
mov al, byte [ebp - 0x2b5]
mov byte [ebp - 0x2c5], al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x15c]
call fcn.00462020
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.00462020
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.00462020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00462020
mov al, byte [ebp - 0x2c5]
jmp 0x597b99
xor ecx, ecx
je 0x597b22
movzx edx, byte [ebp - 0x2b6]
push edx
movzx eax, byte [ebp - 0x2b7]
push eax
movzx ecx, byte [ebp - 0x2b5]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.00461a70
push eax
push str.skipping_file__s__hack__u__found__u__uni__u_
call fcn.005aaeb0
add esp, 0x14
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x15c]
call fcn.00462020
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.00462020
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.00462020
lea edx, [ebp - 0x2b4]
push edx
mov eax, dword [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x59752f
mov ecx, dword [ebp - 0x2d8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dl, byte [ebp - 0x2b5]
mov byte [ebp - 0x2c6], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00462020
mov al, byte [ebp - 0x2c6]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0065b5b4
mov esp, ebp
pop ebp
ret