Function at 0x43db00
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6120
mov eax, dword fs:[0]
push eax
sub esp, 0x768
mov eax, dword [0x5f537c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ecx + 0x308]
xor ebx, ebx
mov ecx, eax
mov dword [ebp - 0x748], ebx
mov dword [ebp - 0x758], ebx
mov dword [ebp - 0x750], eax
call fcn.00449620
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0056c750
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
add esp, 0xc
push eax
push ebx
push ebx
push 0x10
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
test eax, eax
js 0x43e082
xor eax, eax
mov dword [ebp - 0x764], ebx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x760], 7
mov word [ebp - 0x774], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43dbb0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x774]
call fcn.0040cb10
push 0x5b4d40
lea eax, [ebp - 0x774]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004033f0
add esp, 0xc
lea ecx, [ebp - 0x774]
mov byte [ebp - 4], 2
call fcn.00406670
cmp dword [ebp - 0x28c], 8
lea ecx, [ebp - 0x4f0]
lea eax, [ebp - 0x2a0]
cmovae eax, dword [ebp - 0x2a0]
push ecx
push eax
call esi
mov esi, eax
mov dword [ebp - 0x74c], esi
cmp esi, 0xffffffff
je 0x43e06a
mov edi, dword [ebp - 0x228]
nop dword [eax + eax]
test byte [ebp - 0x4f0], 0x16
jne 0x43e047
mov dword [ebp - 0x224], 0
call fcn.00408cf0
test eax, eax
je 0x43e5c0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x21c]
call fcn.00407960
test al, al
jne 0x43dcb9
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43dc97
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040a9f0
push 0x5b22d4
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x754]
push eax
call fcn.00415330
lea ecx, [ebp - 0x4c4]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00415330
add esp, 0x18
mov edx, dword [ebp - 0x754]
or eax, 0xffffffff
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43dd12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43dd34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x744], 0
call fcn.00408cf0
mov ecx, eax
test ecx, ecx
je 0x43e5c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x744], eax
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xa
push eax
push 0x5b2154
push 0x17
push 0
push 0x5b5bd0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x43dfef
mov eax, dword [ebp - 0x220]
xor esi, esi
mov dword [ebp - 0x21c], esi
test eax, eax
je 0x43ddc2
mov ecx, dword [eax]
lea edx, [ebp - 0x21c]
push edx
push 0x5b1fd0
push eax
call dword [ecx]
mov esi, dword [ebp - 0x21c]
xor ecx, ecx
test eax, eax
cmovs esi, ecx
mov dword [ebp - 0x21c], esi
mov byte [ebp - 4], 0xb
test esi, esi
je 0x43de1f
mov eax, dword [ebp - 0x224]
test eax, eax
jne 0x43ddde
xor edi, edi
mov dword [ebp - 0x228], edi
jmp 0x43ddf5
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x228], edi
test edi, edi
je 0x43e5ac
mov eax, dword [esi]
or ebx, 1
push 0
push edi
push esi
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x748], ebx
mov dword [ebp - 0x758], ebx
call dword [eax + 0x14]
mov esi, dword [ebp - 0x21c]
test eax, eax
js 0x43de1f
mov bl, 1
jmp 0x43de21
xor bl, bl
mov eax, dword [ebp - 0x748]
mov dword [ebp - 4], 0xb
test al, 1
je 0x43de48
and eax, 0xfffffffe
push edi
mov dword [ebp - 0x748], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x21c]
test bl, bl
je 0x43dfd5
mov eax, dword [ebp - 0x744]
mov edx, 1
mov esi, dword [ebp - 0x220]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x43de87
push 0x104
lea ecx, [ebp - 0x744]
call fcn.00409ff0
mov eax, dword [ebp - 0x744]
mov ecx, dword [esi]
push 4
push 0
push 0x104
push eax
push esi
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x744]
push dword [eax - 8]
push eax
call fcn.0057b787
mov edx, eax
add esp, 8
test edx, edx
js 0x43e5b6
mov ecx, dword [ebp - 0x744]
cmp edx, dword [ecx - 8]
jg 0x43e5b6
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x744]
mov word [eax + edx*2], cx
xor eax, eax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
mov eax, dword [ebp - 0x224]
mov edx, eax
mov byte [ebp - 4], 0xd
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x43df10
sub edx, esi
lea ecx, [ebp - 0x258]
sar edx, 1
push edx
push eax
call fcn.0040cb10
lea ecx, [ebp - 0x744]
call fcn.00431430
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43df40
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x240]
call fcn.0040cb10
push dword [ebp - 0x744]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
jne 0x43dfb2
push eax
push str.program_files__x86_
lea ecx, [ebp - 0x240]
call fcn.0044afb0
cmp eax, 0xffffffff
je 0x43dfc4
push str.program_files
push 0x13
push eax
lea ecx, [ebp - 0x240]
call fcn.0044bd20
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
push eax
call ebx
test eax, eax
je 0x43dfc4
mov ecx, dword [ebp - 0x750]
lea eax, [ebp - 0x258]
push eax
call fcn.0044b620
lea ecx, [ebp - 0x258]
call fcn.0041de90
mov esi, dword [ebp - 0x21c]
mov byte [ebp - 4], 0xa
test esi, esi
je 0x43dfe3
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [ebp - 0x74c]
mov ebx, dword [ebp - 0x748]
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 9
test eax, eax
je 0x43e003
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x744]
or eax, 0xffffffff
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43e025
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
or eax, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43e047
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x4f0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43dc40
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 4], 0xffffffff
call fcn.00406670
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0056c750
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x19
push 0
call edi
test eax, eax
js 0x43e590
xor eax, eax
mov dword [ebp - 0x764], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x760], 7
mov word [ebp - 0x774], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43e0d7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x774]
call fcn.0040cb10
push 0x5b4d40
lea eax, [ebp - 0x774]
mov dword [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004033f0
add esp, 0xc
lea ecx, [ebp - 0x774]
mov byte [ebp - 4], 0x10
call fcn.00406670
cmp dword [ebp - 0x22c], 8
lea ecx, [ebp - 0x740]
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
push ecx
push eax
call esi
mov esi, eax
mov dword [ebp - 0x754], esi
cmp esi, 0xffffffff
je 0x43e585
mov edi, dword [ebp - 0x74c]
nop
test byte [ebp - 0x740], 0x16
jne 0x43e561
mov dword [ebp - 0x228], 0
call fcn.00408cf0
test eax, eax
je 0x43e5c0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x224]
call fcn.00407960
test al, al
jne 0x43e1d9
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43e1b7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.0040a9f0
push 0x5b22d4
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x75c]
push eax
call fcn.00415330
lea ecx, [ebp - 0x714]
mov byte [ebp - 4], 0x13
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00415330
add esp, 0x18
mov edx, dword [ebp - 0x75c]
or eax, 0xffffffff
mov byte [ebp - 4], 0x15
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43e232
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
or eax, 0xffffffff
mov byte [ebp - 4], 0x16
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43e254
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x744], 0
call fcn.00408cf0
mov ecx, eax
test ecx, ecx
je 0x43e5c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x744], eax
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x18
push eax
push 0x5b2154
push 0x17
push 0
push 0x5b5bd0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x43e509
mov eax, dword [ebp - 0x220]
xor esi, esi
mov dword [ebp - 0x21c], esi
test eax, eax
je 0x43e2e2
mov ecx, dword [eax]
lea edx, [ebp - 0x21c]
push edx
push 0x5b1fd0
push eax
call dword [ecx]
mov esi, dword [ebp - 0x21c]
xor ecx, ecx
test eax, eax
cmovs esi, ecx
mov dword [ebp - 0x21c], esi
mov byte [ebp - 4], 0x19
test esi, esi
je 0x43e33f
mov eax, dword [ebp - 0x228]
test eax, eax
jne 0x43e2fe
xor edi, edi
mov dword [ebp - 0x74c], edi
jmp 0x43e315
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x74c], edi
test edi, edi
je 0x43e5ac
mov eax, dword [esi]
or ebx, 2
push 0
push edi
push esi
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0x748], ebx
mov dword [ebp - 0x758], ebx
call dword [eax + 0x14]
mov esi, dword [ebp - 0x21c]
test eax, eax
js 0x43e33f
mov bl, 1
jmp 0x43e341
xor bl, bl
mov eax, dword [ebp - 0x748]
mov dword [ebp - 4], 0x19
test al, 2
je 0x43e368
and eax, 0xfffffffd
push edi
mov dword [ebp - 0x748], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x21c]
test bl, bl
je 0x43e4f5
mov eax, dword [ebp - 0x744]
mov edx, 1
mov esi, dword [ebp - 0x220]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x43e3a7
push 0x104
lea ecx, [ebp - 0x744]
call fcn.00409ff0
mov eax, dword [ebp - 0x744]
mov ecx, dword [esi]
push 4
push 0
push 0x104
push eax
push esi
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x744]
push dword [eax - 8]
push eax
call fcn.0057b787
mov edx, eax
add esp, 8
test edx, edx
js 0x43e5b6
mov ecx, dword [ebp - 0x744]
cmp edx, dword [ecx - 8]
jg 0x43e5b6
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x744]
mov word [eax + edx*2], cx
xor eax, eax
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x274], 7
mov word [ebp - 0x288], ax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], 7
mov word [ebp - 0x270], ax
mov eax, dword [ebp - 0x228]
mov edx, eax
mov byte [ebp - 4], 0x1b
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x43e430
sub edx, esi
lea ecx, [ebp - 0x288]
sar edx, 1
push edx
push eax
call fcn.0040cb10
lea ecx, [ebp - 0x744]
call fcn.00431430
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43e460
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x270]
call fcn.0040cb10
push dword [ebp - 0x744]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
jne 0x43e4d2
push eax
push str.program_files__x86_
lea ecx, [ebp - 0x270]
call fcn.0044afb0
cmp eax, 0xffffffff
je 0x43e4e4
push str.program_files
push 0x13
push eax
lea ecx, [ebp - 0x270]
call fcn.0044bd20
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
cmovae eax, dword [ebp - 0x270]
push eax
call ebx
test eax, eax
je 0x43e4e4
mov ecx, dword [ebp - 0x750]
lea eax, [ebp - 0x288]
push eax
call fcn.0044b620
lea ecx, [ebp - 0x288]
call fcn.0041de90
mov esi, dword [ebp - 0x21c]
mov byte [ebp - 4], 0x18
test esi, esi
je 0x43e503
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [ebp - 0x754]
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 0x17
test eax, eax
je 0x43e51d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x744]
or eax, 0xffffffff
mov byte [ebp - 4], 0x16
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43e53f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x228]
or eax, 0xffffffff
mov byte [ebp - 4], 0x10
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43e561
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x740]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x43e57e
mov ebx, dword [ebp - 0x748]
jmp 0x43e160
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x240]
call fcn.00406670
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a8ed
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.00407940
push 0x80070057
call fcn.00407940
push 0x80004005
call fcn.00407940
int3