Function at 0x404dd0
Capabilities:
Enumerate files on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41df80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x15], 0
call fcn.00419bc8
mov eax, dword [0x42ad0c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xd8]
lea ecx, [ebp - 0x14]
add eax, 0x28
mov byte [ebp - 4], 4
push eax
call fcn.004155f4
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.004144f4
inc eax
lea ecx, [ebp - 0x24]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041447c
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004155f4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00415507
push str.InsDrv.ini
lea ecx, [ebp - 0x14]
call fcn.00415897
lea edx, [ebp - 0x138]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x138]
push 0x104
push edx
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x20]
push eax
call fcn.00415644
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.004144f4
inc eax
lea ecx, [ebp - 0x24]
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.0041447c
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.004155f4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00415507
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x20]
push edx
call fcn.004158d3
mov eax, dword [ebp - 0x20]
push eax
push 0x104
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x138]
push ecx
push 0x42e3a0
push edx
push str.DriverSetPath
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x138]
push eax
call edi
test eax, eax
jne 0x404f58
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00415507
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00415507
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00415507
mov dword [ebp - 4], 0xffffffff
call fcn.00419c06
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004155f4
lea edx, [ebp - 0x138]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00415644
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.004144f4
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041447c
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004155f4
mov byte [ebp - 4], 4
lea ecx, [ebp + 8]
call fcn.00415507
push 0x4299f4
lea ecx, [ebp - 0x1c]
call fcn.00414516
test eax, eax
jne 0x405008
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.004144f4
lea ecx, [ebp + 8]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041447c
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.004155f4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00415507
lea edx, [ebp - 0x24]
push 3
push edx
lea ecx, [ebp - 0x1c]
call fcn.00414347
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.004155f4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
jmp 0x404f9e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
lea edx, [ebp - 0x138]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x138]
push eax
call edi
cmp byte [ebp + eax - 0x139], 0x5c
je 0x40504a
lea ecx, [ebp - 0x138]
push 0x4285cc
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x138]
lea ecx, [ebp - 0x14]
push edx
call fcn.00415644
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x40506f
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], eax
jle 0x40506f
mov byte [esi + 0xee], 1
lea edx, [ebp - 0x138]
push 0x4299e8
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x278]
lea ecx, [ebp - 0x138]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40516b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov eax, 1
xor esi, esi
mov cl, byte [ebp - 0x15]
test cl, cl
jne 0x405164
test eax, eax
je 0x405164
lea edx, [ebp - 0x24c]
push 0x4299e4
push edx
call edi
test eax, eax
je 0x405151
lea eax, [ebp - 0x24c]
push 0x4299e0
push eax
call edi
test eax, eax
je 0x405151
test byte [ebp - 0x278], 0x10
je 0x40511c
lea ecx, [ebp - 0x24c]
lea edx, [ebp - 0x14]
push ecx
lea eax, [ebp + 8]
push edx
push eax
call fcn.00415750
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call fcn.004155f4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00415507
jmp 0x405129
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004155f4
inc esi
cmp esi, 2
jl 0x405142
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
push edx
push eax
call fcn.00406e9c
add esp, 8
test eax, eax
je 0x405151
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.004052d0
mov byte [ebp - 0x15], al
lea edx, [ebp - 0x278]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x4050ad
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00415507
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00415507
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00415507
mov dword [ebp - 4], 0xffffffff
call fcn.00419c06
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x15]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8