Function at 0x4599c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8a4e
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x634b28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x300], edi
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f8], edi
mov dword [ebp - 0x30c], eax
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov ecx, edx
mov dword [ebp - 0x28], 0
mov ebx, 1
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea esi, [ecx + 2]
mov word [ebp - 0x28], ax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459a60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040491a
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 1
test esi, esi
je 0x459bb7
lea edi, [esi - 1]
cmp esi, edi
jbe 0x45a0a8
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
mov dword [ebp - 0x304], ecx
cmovae eax, edx
cmp word [eax + edi*2], 0x5c
je 0x459bb1
cmp esi, ecx
jae 0x459ad5
lea eax, [esi + 1]
cmp ecx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, edx
mov dword [eax + esi*2], 0x5c
jmp 0x459bb1
mov eax, SysReAllocString
sub eax, esi
cmp eax, 1
jb 0x45a0b2
lea edi, [esi + 1]
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x459afa
mov edi, SysReAllocString
jmp 0x459b18
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x459b10
mov edi, SysReAllocString
jmp 0x459b18
lea eax, [ecx + edx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.004048d3
lea ecx, [esi + 1]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
lea ecx, [esi + esi]
mov esi, dword [ebp - 0x304]
mov dword [ebp - 0x2fc], eax
lea edi, [ecx + eax]
mov dword [ebp - 0x308], edi
push ecx
cmp esi, 8
jb 0x459b95
mov edi, dword [ebp - 0x28]
push edi
push eax
call fcn.0057e070
mov eax, dword [ebp - 0x308]
lea esi, [esi*2 + 2]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, edi
cmp esi, 0x1000
jb 0x459b89
mov edi, dword [edi - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a0ad
push esi
push edi
call fcn.0057b69e
add esp, 8
jmp 0x459ba8
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.0057e070
add esp, 0xc
mov dword [edi], 0x5c
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x2f8]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x88]
call fcn.00457bb0
mov esi, dword [ebp - 0x30c]
mov ecx, esi
mov byte [ebp - 4], 2
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459bd5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x88]
call fcn.0040657e
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x2f0]
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45a004
jmp 0x459c20
cmp word [ebp - 0x2c4], 0x2e
jne 0x459c4e
mov ax, word [ebp - 0x2c2]
test ax, ax
je 0x459fe7
cmp ax, 0x2e
jne 0x459c4e
cmp word [ebp - 0x2c0], 0
je 0x459fe7
test byte [ebp - 0x2f0], 0x10
je 0x459e0f
cmp byte [ebp + 0x14], 0
je 0x459fe7
lea ecx, [ebp - 0x2c4]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459c70
sub ecx, edx
sar ecx, 1
cmp byte [ebp + 0x18], al
je 0x459cce
mov edx, dword [ebp - 0x18]
mov eax, SysReAllocString
sub eax, edx
cmp eax, ecx
jb 0x45a0b2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c4]
push ecx
push edx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x300]
lea ecx, [ebp - 0xa0]
call fcn.0041d914
or ebx, 0x20
lea ecx, [ebp - 0xa0]
or ebx, 2
jmp 0x459cf9
push ecx
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x40], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
call fcn.0040491a
lea ecx, [ebp - 0x40]
or ebx, 4
mov eax, dword [ecx]
mov dword [ebp - 0x58], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x2f4], ebx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov dword [ebp - 4], 4
test bl, 4
je 0x459d84
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffffb
mov dword [ebp - 0x2f4], ebx
cmp edx, 8
jb 0x459d84
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x459d7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a0ad
push edx
push ecx
call fcn.0057b69e
add esp, 8
mov byte [ebp - 4], 5
test bl, 2
je 0x459dd6
mov edx, dword [ebp - 0x8c]
and ebx, 0xfffffffd
mov dword [ebp - 0x2f4], ebx
cmp edx, 8
jb 0x459dd6
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x459dcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a0ad
push edx
push ecx
call fcn.0057b69e
add esp, 8
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x58]
push ecx
cmp eax, dword [edi + 8]
je 0x459def
mov ecx, eax
call fcn.00457bb0
add dword [edi + 4], 0x18
jmp 0x459df7
push eax
mov ecx, edi
call fcn.0042af72
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x459fe7
mov ecx, dword [ebp - 0x58]
jmp 0x459fb8
cmp byte [ebp + 0x1c], 0
je 0x459fe7
lea ecx, [ebp - 0x2c4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459e22
sub ecx, edx
sar ecx, 1
cmp byte [ebp + 0x18], al
je 0x459e80
mov edx, dword [ebp - 0x18]
mov eax, SysReAllocString
sub eax, edx
cmp eax, ecx
jb 0x45a0b2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c4]
push ecx
push edx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x300]
lea ecx, [ebp - 0xa0]
call fcn.0041d914
or ebx, 0x40
lea ecx, [ebp - 0xa0]
or ebx, 8
jmp 0x459eab
push ecx
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x40], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
call fcn.0040491a
lea ecx, [ebp - 0x40]
or ebx, 0x10
mov eax, dword [ecx]
mov dword [ebp - 0x70], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x6c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0x2f4], ebx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov dword [ebp - 4], 7
test bl, 0x10
je 0x459f36
mov edx, dword [ebp - 0x2c]
and ebx, 0xffffffef
mov dword [ebp - 0x2f4], ebx
cmp edx, 8
jb 0x459f36
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x459f2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a0ad
push edx
push ecx
call fcn.0057b69e
add esp, 8
mov byte [ebp - 4], 8
test bl, 8
je 0x459f88
mov edx, dword [ebp - 0x8c]
and ebx, 0xfffffff7
mov dword [ebp - 0x2f4], ebx
cmp edx, 8
jb 0x459f88
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x459f7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a0ad
push edx
push ecx
call fcn.0057b69e
add esp, 8
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x70]
push ecx
cmp eax, dword [edi + 8]
je 0x459fa1
mov ecx, eax
call fcn.00457bb0
add dword [edi + 4], 0x18
jmp 0x459fa9
push eax
mov ecx, edi
call fcn.0042af72
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x459fe7
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x459fdd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a0ad
push edx
push ecx
call fcn.0057b69e
add esp, 8
lea eax, [ebp - 0x2f0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x459c20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x45a03d
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45a033
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a0ad
push edx
push ecx
call fcn.0057b69e
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp edx, 8
jb 0x45a08a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45a080
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a0ad
push edx
push ecx
call fcn.0057b69e
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret
call fcn.004048b9
call fcn.00582360
call fcn.004048ae
int3