Function at 0x459760
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [0x4f0100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x65c], edi
cmp word [esi], 0
je 0x4597b3
lea eax, [ebp - 0x658]
push eax
push esi
call ebx
cmp eax, 0xffffffff
je 0x45986c
test byte [ebp - 0x658], 0x10
je 0x45986c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
mov dword [ebp - 0x660], 0
je 0x459880
lea ecx, [ebp - 0x208]
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4597d0
lea ecx, [ebp - 0x208]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4597f0
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20a], 0x5c
je 0x459826
lea edi, [ebp - 0x208]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x459813
mov eax, dword [0x4deb7c]
mov dword [edi], eax
xor ecx, ecx
nop dword [eax + eax]
movzx eax, word [ebp + ecx - 0x208]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x40a], ax
test ax, ax
jne 0x459830
lea edi, [ebp - 0x408]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x459851
mov eax, dword [0x4d7f84]
mov dword [edi], eax
mov edi, dword [ebp - 0x65c]
jmp 0x459893
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b4e2
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x408], 0x2a
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x408]
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x664], esi
cmp esi, 0xffffffff
je 0x4599db
mov ebx, edi
lea eax, [ebp - 0x208]
sub ebx, eax
nop
mov ecx, 0x4deaf4
lea eax, [ebp - 0x62c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4598f6
test dx, dx
je 0x4598f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4598f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4598d0
xor eax, eax
jmp 0x4598fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4599be
mov ecx, 0x4deaf8
lea eax, [ebp - 0x62c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x459936
test dx, dx
je 0x459932
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x459936
add eax, 4
add ecx, 4
test dx, dx
jne 0x459910
xor eax, eax
jmp 0x45993b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4599be
test edi, edi
je 0x4599b8
lea eax, [ebp - 0x208]
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [ebx + eax - 2], cx
test cx, cx
jne 0x459950
lea edx, [ebp - 0x62c]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x459970
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x459980
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x65c]
mov esi, dword [ebp - 0x664]
add edi, 0x200
mov dword [ebp - 0x65c], edi
add ebx, 0x200
inc dword [ebp - 0x660]
lea eax, [ebp - 0x658]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4598c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x660]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047b4e2
mov esp, ebp
pop ebp
ret