Function at 0x45edc0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x35c], edi
mov dword [ebp - 0x360], ebx
mov dword [ebp - 0x350], esi
call fcn.0046d4f0
test eax, eax
je 0x45ee80
push 0
push str.KINIFile::LocateINIFileNames_n
push 0x68b2b0
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x68b1b0], eax
mov eax, 0x68b2b0
mov dword [0x68b1b4], ecx
add esp, 0xc
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x45ee30
mov edi, 0x68b1b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45ee41
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x68b1b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov esi, dword [ebp - 0x350]
mov edi, dword [ebp - 0x35c]
call fcn.0046d4f0
test eax, eax
je 0x45eead
push ebx
push str.pszInstallPath___s_n
push 0x68b0b0
call fcn.00599ee3
add esp, 0xc
push 0x68b0b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
lea edx, [ebp - 0x20c]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x45eeb7
lea eax, [ebp - 0x20c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45eec8
mov edx, dword [0x5cf4b4]
mov cx, word [0x5cf4b8]
mov dword [eax], edx
mov dl, byte [0x5cf4ba]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x358], eax
cmp eax, 0xffffffff
je 0x45f032
lea ebx, [ebp - 0x108]
sub ebx, dword [ebp - 0x360]
jmp 0x45ef20
mov eax, dword [ebp - 0x360]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x45ef26
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45ef37
mov dx, word [0x5cd28c]
lea eax, [ebp - 0x320]
mov word [edi], dx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45ef51
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45ef61
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x350]
mov esi, dword [edi]
cmp esi, 0x5dc
jae 0x45efce
lea eax, [esi + 1]
mov dword [edi], eax
cmp esi, 0xffffffff
je 0x45efce
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45efa0
sub eax, edx
add eax, 5
push eax
call fcn.004a6dbf
add esp, 4
mov dword [edi + esi*4 + 0x5e0], eax
lea ecx, [ebp - 0x108]
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x45efc4
call fcn.0046d4f0
test eax, eax
je 0x45f001
lea ecx, [ebp - 0x108]
push ecx
push str.szTestFile___s_n
push 0x68afb0
call fcn.00599ee3
add esp, 0xc
push 0x68afb0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov eax, dword [ebp - 0x358]
lea edx, [ebp - 0x34c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x45ef20
mov ecx, dword [ebp - 0x358]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, edi
mov edi, dword [ebp - 0x35c]
mov edx, dword [edi + 0x4ac8]
mov eax, dword [edx + 0xdac]
cmp dword [eax - 0xc], 0
je 0x45f080
push eax
mov ecx, esi
call fcn.0045afd0
test eax, eax
jne 0x45f080
mov eax, dword [edi + 0x4ac8]
mov eax, dword [eax + 0xdac]
push eax
lea ecx, [ebp - 0x351]
call fcn.0042cf90
test eax, eax
je 0x45f080
mov ecx, dword [edi + 0x4ac8]
mov edx, dword [ecx + 0xdac]
push edx
mov ecx, esi
call fcn.00427020
call fcn.0046d4f0
test eax, eax
je 0x45f10b
mov eax, dword [esi]
push eax
push str.KINIFile::LocateINIFileNames_:_pkslINIFileNames__GetCount_____d_n
push 0x68aeb0
call fcn.00599ee3
mov ecx, dword [str.EXIT:]
mov edx, dword [0x5ccefc]
mov eax, 0x68aeb0
mov dword [0x68adb0], ecx
add esp, 0xc
mov dword [0x68adb4], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x45f0c1
mov edi, 0x68adb0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45f0d2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x68adb0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov esi, dword [ebp - 0x350]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp eax, dword [esi]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 0xc