Function at 0x100a8540
Capabilities:
Enumerate files on windows
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10179e89
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x101e8118]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2cc], ecx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.100addf0
add esp, 8
mov dword [ebp - 4], 0
push 0x101940f8
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.10019630
mov byte [ebp - 4], 1
lea eax, [ebp - 0x27c]
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.10005f10
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x100a85ed
mov dword [ebp - 0x294], 0xfffffed2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10006030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006030
mov eax, dword [ebp - 0x294]
jmp 0x100a8b32
push 4
call fcn.1013edb0
add esp, 4
mov ecx, dword [ebp - 0x2cc]
mov dword [ecx], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x2cc]
mov dword [edx + 8], 1
mov dword [ebp - 0x280], 0
jmp 0x100a862e
mov eax, dword [ebp - 0x280]
add eax, 1
mov dword [ebp - 0x280], eax
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ebp - 0x280]
cmp edx, dword [ecx + 8]
jae 0x100a8656
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x280]
mov dword [ecx + edx*4], 0
jmp 0x100a861f
mov byte [ebp - 0x15], 0
push 0x238
call fcn.1013b73e
add esp, 4
mov dword [ebp - 0x29c], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x29c], 0
je 0x100a868d
mov ecx, dword [ebp - 0x29c]
call fcn.100a9010
mov dword [ebp - 0x2d0], eax
jmp 0x100a8697
mov dword [ebp - 0x2d0], 0
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x298]
mov dword [ebp - 0x284], ecx
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.10019630
mov dword [ebp - 0x2d4], eax
mov edx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2d8]
call fcn.10005a00
push eax
call fcn.10090c40
mov ecx, dword [ebp - 0x284]
mov dword [ecx], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a0]
call fcn.10006030
mov edx, dword [ebp - 0x284]
cmp dword [edx], 0
jne 0x100a8758
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2a4], ecx
cmp dword [ebp - 0x2a4], 0
je 0x100a8749
push 1
mov ecx, dword [ebp - 0x2a4]
call fcn.100a9080
mov dword [ebp - 0x2dc], eax
jmp 0x100a8753
mov dword [ebp - 0x2dc], 0
jmp 0x100a8aaf
push 0x10194104
mov edx, dword [ebp - 0x284]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
push str.PlugInit
mov ecx, dword [ebp - 0x284]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push str.PlugCreate
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x284]
mov dword [edx + 0x214], eax
push 0x10194128
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x284]
mov dword [edx + 0x210], eax
push str.PlugTerm
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x284]
mov dword [edx + 0x20c], eax
push str.determineCommands
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28c], eax
push 0x10194154
mov edx, dword [ebp - 0x284]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x288], eax
cmp dword [ebp - 0x28c], 0
jne 0x100a8865
cmp dword [ebp - 0x288], 0
jne 0x100a8865
cmp dword [ebp - 0x1c], 0
je 0x100a8865
cmp dword [ebp - 0x14], 0
je 0x100a8865
mov ecx, dword [ebp - 0x284]
cmp dword [ecx + 0x214], 0
je 0x100a8865
mov edx, dword [ebp - 0x284]
cmp dword [edx + 0x210], 0
je 0x100a8865
mov eax, dword [ebp - 0x284]
cmp dword [eax + 0x20c], 0
jne 0x100a88b9
mov ecx, dword [ebp - 0x284]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x2b0], eax
mov ecx, dword [ebp - 0x2b0]
mov dword [ebp - 0x2ac], ecx
cmp dword [ebp - 0x2ac], 0
je 0x100a88aa
push 1
mov ecx, dword [ebp - 0x2ac]
call fcn.100a9080
mov dword [ebp - 0x2e0], eax
jmp 0x100a88b4
mov dword [ebp - 0x2e0], 0
jmp 0x100a8aaf
call dword [ebp - 0x1c]
movzx edx, al
test edx, edx
jne 0x100a8917
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x2b8], edx
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x100a8908
push 1
mov ecx, dword [ebp - 0x2b4]
call fcn.100a9080
mov dword [ebp - 0x2e4], eax
jmp 0x100a8912
mov dword [ebp - 0x2e4], 0
jmp 0x100a8aaf
lea ecx, [ebp - 0x250]
push ecx
push 0x10194164
mov edx, dword [ebp - 0x284]
add edx, 4
push edx
call fcn.1013b37a
add esp, 0xc
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x2cc]
mov eax, dword [edx]
mov edx, dword [ebp - 0x284]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [eax + 4]
add ecx, 1
mov edx, dword [ebp - 0x2cc]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [eax + 4]
cmp edx, dword [ecx + 8]
jne 0x100a8a02
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [eax + 8]
shl ecx, 2
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x2cc]
mov eax, dword [edx]
push eax
call fcn.1013baf5
add esp, 8
mov ecx, dword [ebp - 0x2cc]
mov dword [ecx], eax
mov edx, dword [ebp - 0x2cc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x290], eax
jmp 0x100a89c4
mov ecx, dword [ebp - 0x290]
add ecx, 1
mov dword [ebp - 0x290], ecx
mov edx, dword [ebp - 0x2cc]
mov eax, dword [edx + 8]
shl eax, 1
cmp dword [ebp - 0x290], eax
jae 0x100a89ee
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x290]
mov dword [edx + eax*4], 0
jmp 0x100a89b5
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ecx + 8]
shl edx, 1
mov eax, dword [ebp - 0x2cc]
mov dword [eax + 8], edx
movzx ecx, byte [ebp + 8]
test ecx, ecx
jne 0x100a8aa2
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [eax + 0xc]
push ecx
call dword [ebp - 0x14]
movzx edx, al
test edx, edx
jne 0x100a8aa2
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x2c0], edx
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2bc], eax
cmp dword [ebp - 0x2bc], 0
je 0x100a8a6b
push 1
mov ecx, dword [ebp - 0x2bc]
call fcn.100a9080
mov dword [ebp - 0x2e8], eax
jmp 0x100a8a75
mov dword [ebp - 0x2e8], 0
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ecx + 4]
sub edx, 1
mov eax, dword [ebp - 0x2cc]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [eax]
mov dword [ecx + edx*4], 0
mov byte [ebp - 0x15], 1
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x27c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100a865a
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x100a8b07
mov dword [ebp - 0x2c4], 0xfffffed2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10006030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006030
mov eax, dword [ebp - 0x2c4]
jmp 0x100a8b32
mov dword [ebp - 0x2c8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10006030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006030
mov eax, dword [ebp - 0x2c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.1013a297
mov esp, ebp
pop ebp
ret 4