Function at 0x4226f1
Capabilities:
Enumerate files on windows

Disassembly:
push 0x378
mov eax, 0x451700
call fcn.0042bcfc
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x370], edi
mov dword [ebp - 0x34c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x380], ebx
mov dword [ebp - 0x37c], ebx
mov dword [ebp - 0x378], ebx
push 0x459cbc
lea ecx, [ebp - 0x344]
mov byte [ebp - 4], 1
call fcn.004014c2
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00406d4d
mov ecx, dword [ebp - 0x344]
mov byte [ebp - 4], 4
cmp ecx, ebx
je 0x422767
call fcn.004016e1
push str.Connect
lea ecx, [ebp - 0x344]
call fcn.004014c2
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 5
call fcn.004066a6
add esp, 0xc
push eax
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 6
call fcn.004042f5
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x3c]
push eax
call esi
mov ecx, dword [ebp - 0x344]
mov byte [ebp - 4], 9
cmp ecx, ebx
je 0x4227c4
call fcn.004016e1
push str.Productdir
lea ecx, [ebp - 0x35c]
call fcn.004014c2
push str.ElsawinDirectories
lea ecx, [ebp - 0x344]
mov byte [ebp - 4], 0xa
call fcn.004014c2
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0xb
call fcn.004066a6
add esp, 0xc
push eax
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], 0xc
call fcn.004042f5
lea eax, [ebp - 0x20]
push eax
call esi
mov ecx, dword [ebp - 0x344]
cmp ecx, ebx
je 0x42282b
call fcn.004016e1
mov ecx, dword [ebp - 0x35c]
mov byte [ebp - 4], 0x10
cmp ecx, ebx
je 0x42283e
call fcn.004016e1
mov eax, dword [ebp - 0x36c]
cmp eax, ebx
je 0x42284c
mov eax, dword [eax]
jmp 0x42284e
xor eax, eax
push eax
lea ecx, [ebp - 0x64]
call fcn.00401dba
mov esi, 0x459f24
push esi
mov byte [ebp - 4], 0x11
call fcn.0042b7ec
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.004015b5
cmp eax, 0xffffffff
je 0x422938
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x422887
lea eax, [ebp - 0x64]
cmp eax, ebx
jne 0x42291f
xor eax, eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x370], ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x344]
push ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 0x13
call fcn.0042255e
push dword [ebp - 0x344]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push ebx
call esi
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.0040172e
mov ecx, dword [ebp - 0x368]
cmp ecx, ebx
je 0x4228dd
call fcn.004016e1
mov ecx, dword [ebp - 0x36c]
cmp ecx, ebx
je 0x4228ec
call fcn.004016e1
mov ecx, dword [ebp - 0x350]
cmp ecx, ebx
je 0x422901
call fcn.004016e1
mov dword [ebp - 0x350], ebx
lea ecx, [ebp - 0x380]
call fcn.00401121
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x422918
call fcn.004016e1
mov al, 1
jmp 0x422f93
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
jne 0x422891
push 0x8007000e
call fcn.00401099
mov esi, str.Database
push esi
call fcn.0042b7ec
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.004015b5
cmp eax, 0xffffffff
je 0x422f3c
push esi
call fcn.0042b7ec
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.004015b5
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00401dfe
push 1
push ebx
lea eax, [ebp - 0x364]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x364], 0x3b
call fcn.004015b5
push eax
push ebx
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401dfe
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x15
call fcn.00401e20
push ebx
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x14
call fcn.0040172e
push esi
call fcn.0042b7ec
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004015b5
mov edi, 0x45342c
jmp 0x422a29
lea ecx, [ebp - 0x9c]
call fcn.00401dba
push 0xffffffffffffffff
push ebx
push eax
push 9
push dword [ebp - 0x344]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x16
call fcn.00407140
push ebx
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x14
call fcn.0040172e
push esi
call fcn.0042b7ec
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004015b5
mov dword [ebp - 0x344], eax
push edi
cmp eax, 0xffffffff
jne 0x4229e2
lea ecx, [ebp - 0xb8]
call fcn.00401dba
mov edi, 0x4551d4
push edi
mov byte [ebp - 4], 0x17
call fcn.0042b7ec
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.004015b5
cmp eax, 0xffffffff
je 0x422aa7
push edi
call fcn.0042b7ec
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.004015b5
push eax
push ebx
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401dfe
push eax
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x18
call fcn.00401e20
push ebx
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x17
call fcn.0040172e
jmp 0x422ab9
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xb8]
call fcn.00401ada
push str._sqlserverdatamdfs
lea ecx, [ebp - 0x344]
mov dword [ebp - 0x364], ebx
call fcn.004014c2
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], 0x19
call fcn.00406d4d
mov ecx, dword [ebp - 0x344]
mov byte [ebp - 4], 0x1b
cmp ecx, ebx
je 0x422aff
call fcn.004016e1
cmp dword [ebp - 0xa4], 8
mov eax, dword [ebp - 0xb8]
jae 0x422b14
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x344]
call fcn.004014c2
lea eax, [ebp - 0x344]
push eax
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 0x1c
call fcn.00406cef
mov ecx, dword [ebp - 0x344]
mov byte [ebp - 4], 0x1b
cmp ecx, ebx
je 0x422b49
call fcn.004016e1
push str..txt
lea ecx, [ebp - 0x344]
call fcn.004014c2
lea eax, [ebp - 0x344]
push eax
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 0x1d
call fcn.00406cef
mov ecx, dword [ebp - 0x344]
mov byte [ebp - 4], 0x1b
cmp ecx, ebx
je 0x422b82
call fcn.004016e1
mov eax, dword [ebp - 0x360]
cmp eax, ebx
je 0x422b90
mov eax, dword [eax]
jmp 0x422b92
xor eax, eax
lea ecx, [ebp - 0x340]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push esi
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x374], eax
call fcn.00401dba
cmp dword [ebp - 0x374], 0xffffffff
mov byte [ebp - 4], 0x1e
je 0x422ef9
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x354]
call fcn.004014c2
mov byte [ebp - 4], 0x1f
cmp dword [ebp - 0x354], ebx
je 0x422beb
mov eax, dword [ebp - 0x354]
mov eax, dword [eax]
jmp 0x422bed
xor eax, eax
push eax
lea ecx, [ebp - 0x80]
call fcn.00401dba
push esi
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x20
call fcn.00401dba
test byte [ebp - 0x340], 0x10
mov byte [ebp - 4], 0x21
jne 0x422c6a
push edi
lea ecx, [ebp - 0x344]
call fcn.004014c2
or dword [ebp - 0x34c], 1
push eax
lea ecx, [ebp - 0x354]
mov byte [ebp - 4], 0x22
call fcn.00401543
test eax, eax
jne 0x422c61
push 0x459ed0
lea ecx, [ebp - 0x35c]
call fcn.004014c2
or dword [ebp - 0x34c], 2
push eax
lea ecx, [ebp - 0x354]
call fcn.00401543
test eax, eax
je 0x422c6a
mov byte [ebp - 0x345], 1
jmp 0x422c70
mov byte [ebp - 0x345], bl
test byte [ebp - 0x34c], 2
je 0x422c99
and dword [ebp - 0x34c], 0xfffffffd
cmp dword [ebp - 0x35c], ebx
je 0x422c99
mov ecx, dword [ebp - 0x35c]
call fcn.004016e1
mov dword [ebp - 0x35c], ebx
test byte [ebp - 0x34c], 1
mov dword [ebp - 4], 0x21
je 0x422cc9
and dword [ebp - 0x34c], 0xfffffffe
cmp dword [ebp - 0x344], ebx
je 0x422cc9
mov ecx, dword [ebp - 0x344]
call fcn.004016e1
mov dword [ebp - 0x344], ebx
cmp byte [ebp - 0x345], bl
je 0x422e96
push edi
call fcn.0042b7ec
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x80]
call fcn.004015b5
cmp eax, 0xffffffff
je 0x422d2f
push edi
call fcn.0042b7ec
pop ecx
push eax
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x80]
call fcn.00422209
push eax
push ebx
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x80]
call fcn.00401dfe
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x23
call fcn.00401e20
push ebx
push 1
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x21
call fcn.0040172e
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00401a37
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x80]
call fcn.00401ada
xor eax, eax
push 0xffffffffffffffff
mov word [ebp - 0x48], ax
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
call fcn.00401ada
push esi
mov byte [ebp - 4], 0x24
call fcn.0042b7ec
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004015b5
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401dfe
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x25
call fcn.00401e20
push ebx
push 1
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x24
call fcn.0040172e
push 1
push ebx
lea eax, [ebp - 0x358]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x358], 0x3b
call fcn.004015b5
push eax
push ebx
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401dfe
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x26
call fcn.00401e20
push ebx
push 1
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x24
call fcn.0040172e
mov eax, dword [ebp - 0x1c]
push esi
mov dword [ebp - 0x358], eax
call fcn.0042b7ec
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004015b5
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp - 0x358]
lea ecx, [ebp - 0x48]
push eax
call fcn.00407140
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x422e3c
lea eax, [ebp - 0x48]
cmp eax, ebx
jne 0x422e44
xor eax, eax
jmp 0x422e53
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
je 0x42292e
mov dword [ebp - 0x358], eax
mov dword [ebp - 0x384], ebx
mov ecx, dword [ebp - 0x370]
mov eax, dword [ecx]
lea edx, [ebp - 0x358]
push edx
push eax
mov byte [ebp - 4], 0x28
call fcn.0042255e
push dword [ebp - 0x358]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040172e
lea eax, [ebp - 0x340]
push eax
push dword [ebp - 0x374]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x422eb7
mov dword [ebp - 0x364], 1
push ebx
push 1
lea ecx, [ebp - 0x9c]
call fcn.0040172e
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.0040172e
mov byte [ebp - 4], 0x1e
cmp dword [ebp - 0x354], ebx
je 0x422eed
mov ecx, dword [ebp - 0x354]
call fcn.004016e1
mov dword [ebp - 0x354], ebx
cmp dword [ebp - 0x364], ebx
je 0x422bc3
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0xf0]
call fcn.0040172e
mov ecx, dword [ebp - 0x360]
cmp ecx, ebx
je 0x422f1e
call fcn.004016e1
mov dword [ebp - 0x360], ebx
push ebx
push esi
lea ecx, [ebp - 0xb8]
call fcn.0040172e
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040172e
push ebx
push esi
jmp 0x4228c6
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.0040172e
mov ecx, dword [ebp - 0x368]
cmp ecx, ebx
je 0x422f56
call fcn.004016e1
mov ecx, dword [ebp - 0x36c]
cmp ecx, ebx
je 0x422f65
call fcn.004016e1
mov ecx, dword [ebp - 0x350]
cmp ecx, ebx
je 0x422f7a
call fcn.004016e1
mov dword [ebp - 0x350], ebx
lea ecx, [ebp - 0x380]
call fcn.00401121
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x422f91
call fcn.004016e1
xor al, al
call fcn.0042bd7f
ret