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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f1f0
mov eax, dword fs:[0]
push eax
sub esp, 0x768
mov eax, dword [0x5ec374]
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.00445920
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.005663c0
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 0x43a7b2
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 0x43a2e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x774]
call fcn.0040c920
push 0x5ad8f8
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.004064f0
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 0x43a79a
mov edi, dword [ebp - 0x228]
nop dword [eax + eax]
test byte [ebp - 0x4f0], 0x16
jne 0x43a777
mov dword [ebp - 0x224], 0
call fcn.00408b70
test eax, eax
je 0x43acf0
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.004077e0
test al, al
jne 0x43a3e9
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43a3c7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040a800
push 0x5ab294
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x754]
push eax
call fcn.00414cf0
lea ecx, [ebp - 0x4c4]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00414cf0
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 0x43a442
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 0x43a464
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x744], 0
call fcn.00408b70
mov ecx, eax
test ecx, ecx
je 0x43acf0
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 0x5ab110
push 0x17
push 0
push 0x5ae710
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x43a71f
mov eax, dword [ebp - 0x220]
xor esi, esi
mov dword [ebp - 0x21c], esi
test eax, eax
je 0x43a4f2
mov ecx, dword [eax]
lea edx, [ebp - 0x21c]
push edx
push 0x5aafcc
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 0x43a54f
mov eax, dword [ebp - 0x224]
test eax, eax
jne 0x43a50e
xor edi, edi
mov dword [ebp - 0x228], edi
jmp 0x43a525
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x228], edi
test edi, edi
je 0x43acdc
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 0x43a54f
mov bl, 1
jmp 0x43a551
xor bl, bl
mov eax, dword [ebp - 0x748]
mov dword [ebp - 4], 0xb
test al, 1
je 0x43a578
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 0x43a705
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 0x43a5b7
push 0x104
lea ecx, [ebp - 0x744]
call fcn.00409e00
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.00575317
mov edx, eax
add esp, 8
test edx, edx
js 0x43ace6
mov ecx, dword [ebp - 0x744]
cmp edx, dword [ecx - 8]
jg 0x43ace6
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 0x43a640
sub edx, esi
lea ecx, [ebp - 0x258]
sar edx, 1
push edx
push eax
call fcn.0040c920
lea ecx, [ebp - 0x744]
call fcn.0042e5c0
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43a670
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x240]
call fcn.0040c920
push dword [ebp - 0x744]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
jne 0x43a6e2
push eax
push str.program_files__x86_
lea ecx, [ebp - 0x240]
call fcn.004472b0
cmp eax, 0xffffffff
je 0x43a6f4
push str.program_files
push 0x13
push eax
lea ecx, [ebp - 0x240]
call fcn.00447c50
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
push eax
call ebx
test eax, eax
je 0x43a6f4
mov ecx, dword [ebp - 0x750]
lea eax, [ebp - 0x258]
push eax
call fcn.00447920
lea ecx, [ebp - 0x258]
call fcn.0041d240
mov esi, dword [ebp - 0x21c]
mov byte [ebp - 4], 0xa
test esi, esi
je 0x43a713
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 0x43a733
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 0x43a755
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 0x43a777
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 0x43a370
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.004064f0
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005663c0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x19
push 0
call edi
test eax, eax
js 0x43acc0
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 0x43a807
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x774]
call fcn.0040c920
push 0x5ad8f8
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.004064f0
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 0x43acb5
mov edi, dword [ebp - 0x74c]
nop
test byte [ebp - 0x740], 0x16
jne 0x43ac91
mov dword [ebp - 0x228], 0
call fcn.00408b70
test eax, eax
je 0x43acf0
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.004077e0
test al, al
jne 0x43a909
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43a8e7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.0040a800
push 0x5ab294
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x75c]
push eax
call fcn.00414cf0
lea ecx, [ebp - 0x714]
mov byte [ebp - 4], 0x13
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00414cf0
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 0x43a962
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 0x43a984
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x744], 0
call fcn.00408b70
mov ecx, eax
test ecx, ecx
je 0x43acf0
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 0x5ab110
push 0x17
push 0
push 0x5ae710
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x43ac39
mov eax, dword [ebp - 0x220]
xor esi, esi
mov dword [ebp - 0x21c], esi
test eax, eax
je 0x43aa12
mov ecx, dword [eax]
lea edx, [ebp - 0x21c]
push edx
push 0x5aafcc
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 0x43aa6f
mov eax, dword [ebp - 0x228]
test eax, eax
jne 0x43aa2e
xor edi, edi
mov dword [ebp - 0x74c], edi
jmp 0x43aa45
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x74c], edi
test edi, edi
je 0x43acdc
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 0x43aa6f
mov bl, 1
jmp 0x43aa71
xor bl, bl
mov eax, dword [ebp - 0x748]
mov dword [ebp - 4], 0x19
test al, 2
je 0x43aa98
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 0x43ac25
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 0x43aad7
push 0x104
lea ecx, [ebp - 0x744]
call fcn.00409e00
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.00575317
mov edx, eax
add esp, 8
test edx, edx
js 0x43ace6
mov ecx, dword [ebp - 0x744]
cmp edx, dword [ecx - 8]
jg 0x43ace6
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 0x43ab60
sub edx, esi
lea ecx, [ebp - 0x288]
sar edx, 1
push edx
push eax
call fcn.0040c920
lea ecx, [ebp - 0x744]
call fcn.0042e5c0
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43ab90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x270]
call fcn.0040c920
push dword [ebp - 0x744]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
jne 0x43ac02
push eax
push str.program_files__x86_
lea ecx, [ebp - 0x270]
call fcn.004472b0
cmp eax, 0xffffffff
je 0x43ac14
push str.program_files
push 0x13
push eax
lea ecx, [ebp - 0x270]
call fcn.00447c50
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
cmovae eax, dword [ebp - 0x270]
push eax
call ebx
test eax, eax
je 0x43ac14
mov ecx, dword [ebp - 0x750]
lea eax, [ebp - 0x288]
push eax
call fcn.00447920
lea ecx, [ebp - 0x288]
call fcn.0041d240
mov esi, dword [ebp - 0x21c]
mov byte [ebp - 4], 0x18
test esi, esi
je 0x43ac33
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 0x43ac4d
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 0x43ac6f
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 0x43ac91
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 0x43acae
mov ebx, dword [ebp - 0x748]
jmp 0x43a890
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x240]
call fcn.004064f0
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.0045674d
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.004077c0
push 0x80070057
call fcn.004077c0
push 0x80004005
call fcn.004077c0
int3