Function at 0x4019d0
Capabilities:
Enumerate files on windows
Set environment variable

Disassembly:
mov al, byte [0x410d70]
sub esp, 0x37c
test al, al
push edi
je 0x4019ea
mov al, 1
pop edi
add esp, 0x37c
ret
push 0x28
call fcn.00403cd0
mov edx, eax
add esp, 4
test edx, edx
je 0x401a10
mov ecx, 9
xor eax, eax
lea edi, [edx + 4]
mov dword [edx], 0x40d1a8
rep stosd dword es:[edi], eax
mov eax, edx
jmp 0x401a12
xor eax, eax
test eax, eax
mov dword [0x410d74], eax
jne 0x401a25
xor al, al
pop edi
add esp, 0x37c
ret
push ebx
push ebp
push esi
mov dword [0x410d68], eax
mov dword [0x410d64], eax
push eax
lea eax, [esp + 0x28]
push 0x40e0f8
push eax
call fcn.00404494
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push str.KSLIBCREATOR_POINTER
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
mov byte [0x410d70], 1
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [0x410d74]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], 0
call fcn.00401e30
push 1
mov dword [esi + 4], eax
call fcn.00401e30
push 1
mov dword [esi + 8], eax
call fcn.00401e30
mov dword [esi + 0xc], eax
mov eax, dword [0x410d64]
add esp, 0xc
test eax, eax
jne 0x401ab4
call fcn.00401df0
mov eax, dword [0x410d64]
test eax, eax
je 0x401abd
mov edx, dword [eax]
push 2
push eax
call dword [edx]
jmp 0x401abf
xor eax, eax
mov dword [esi + 0x10], eax
mov eax, dword [0x410d64]
test eax, eax
jne 0x401ad9
call fcn.00401df0
mov eax, dword [0x410d64]
test eax, eax
je 0x401ae2
mov ecx, dword [eax]
push 1
push eax
call dword [ecx]
jmp 0x401ae4
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [0x410d64]
test eax, eax
jne 0x401afe
call fcn.00401df0
mov eax, dword [0x410d64]
test eax, eax
je 0x401b07
mov edx, dword [eax]
push 1
push eax
call dword [edx]
jmp 0x401b09
xor eax, eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov byte [esi + 0x24], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
lea edx, [esp + 0x44]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [esp + 0x24c]
lea ecx, [esp + 0x44]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xc
call fcn.00403cd0
mov edx, dword [esi + 0x20]
mov edi, eax
lea eax, [esp + 0x48]
push eax
mov dword [edi], edx
call fcn.0040c3c6
add esp, 8
lea ecx, [esp + 0x260]
mov dword [edi + 4], eax
push ecx
push esi
call fcn.00402760
mov dword [edi + 8], eax
mov esi, dword [esi + 0xc]
push edi
push 0x80000000
mov edx, dword [esi]
push esi
call dword [edx + 0x10]
mov ebp, dword [0x410d74]
push ebp
mov eax, dword [ebp]
call dword [eax + 4]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40e0f4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x148]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x148]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..DLL
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x24c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14c]
push ecx
call ebx
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x401dd7
mov ebx, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x148]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x148]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x278]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x148]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x401db1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._KS_ConnectPackage4_4
push edi
call esi
test eax, eax
jne 0x401cf6
push str.KS_ConnectPackage4
push edi
call esi
test eax, eax
je 0x401daa
push ebp
call eax
cmp eax, 0x45763890
jne 0x401daa
push 0xc
call fcn.00403cd0
mov esi, eax
lea ecx, [esp + 0x14c]
push ecx
mov dword [esi], edi
call fcn.0040c3c6
add esp, 8
mov dword [esi + 4], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x260]
push edx
push eax
call ebx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x16]
and eax, 0xffff
and edx, 0xffff
push esi
push 0x80000000
lea ecx, [eax + eax*2]
lea ecx, [edx + ecx*4]
mov eax, ecx
shl eax, 5
sub eax, ecx
mov ecx, dword [esp + 0x22]
and ecx, 0xffff
add eax, ecx
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x24]
and eax, 0xffff
lea eax, [eax + edx*8]
mov edx, dword [esp + 0x26]
and edx, 0xffff
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4 + 0x245800]
mov ecx, dword [esp + 0x28]
and ecx, 0xffff
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov dword [esi + 8], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
jmp 0x401db1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401c61
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [0x410d74]
push edx
call fcn.004027e0
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
add esp, 0x37c
ret