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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4630
mov eax, dword fs:[0]
push eax
sub esp, 0x768
mov eax, dword [0x5f237c]
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.00449260
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0056acc0
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 0x43ddb2
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 0x43d8e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x774]
call fcn.0040cb10
push 0x5b2cf8
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 0x43dd9a
mov edi, dword [ebp - 0x228]
nop dword [eax + eax]
test byte [ebp - 0x4f0], 0x16
jne 0x43dd77
mov dword [ebp - 0x224], 0
call fcn.00408cf0
test eax, eax
je 0x43e2f0
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 0x43d9e9
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43d9c7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040a9f0
push 0x5b02d4
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 0x43da42
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 0x43da64
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 0x43e2f0
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 0x5b0154
push 0x17
push 0
push 0x5b3b80
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x43dd1f
mov eax, dword [ebp - 0x220]
xor esi, esi
mov dword [ebp - 0x21c], esi
test eax, eax
je 0x43daf2
mov ecx, dword [eax]
lea edx, [ebp - 0x21c]
push edx
push 0x5affcc
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 0x43db4f
mov eax, dword [ebp - 0x224]
test eax, eax
jne 0x43db0e
xor edi, edi
mov dword [ebp - 0x228], edi
jmp 0x43db25
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x228], edi
test edi, edi
je 0x43e2dc
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 0x43db4f
mov bl, 1
jmp 0x43db51
xor bl, bl
mov eax, dword [ebp - 0x748]
mov dword [ebp - 4], 0xb
test al, 1
je 0x43db78
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 0x43dd05
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 0x43dbb7
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.00579cf7
mov edx, eax
add esp, 8
test edx, edx
js 0x43e2e6
mov ecx, dword [ebp - 0x744]
cmp edx, dword [ecx - 8]
jg 0x43e2e6
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 0x43dc40
sub edx, esi
lea ecx, [ebp - 0x258]
sar edx, 1
push edx
push eax
call fcn.0040cb10
lea ecx, [ebp - 0x744]
call fcn.004311c0
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43dc70
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 0x43dce2
push eax
push str.program_files__x86_
lea ecx, [ebp - 0x240]
call fcn.0044abf0
cmp eax, 0xffffffff
je 0x43dcf4
push str.program_files
push 0x13
push eax
lea ecx, [ebp - 0x240]
call fcn.0044b960
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
push eax
call ebx
test eax, eax
je 0x43dcf4
mov ecx, dword [ebp - 0x750]
lea eax, [ebp - 0x258]
push eax
call fcn.0044b260
lea ecx, [ebp - 0x258]
call fcn.0041de80
mov esi, dword [ebp - 0x21c]
mov byte [ebp - 4], 0xa
test esi, esi
je 0x43dd13
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 0x43dd33
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 0x43dd55
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 0x43dd77
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 0x43d970
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.0056acc0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x19
push 0
call edi
test eax, eax
js 0x43e2c0
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 0x43de07
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x774]
call fcn.0040cb10
push 0x5b2cf8
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 0x43e2b5
mov edi, dword [ebp - 0x74c]
nop
test byte [ebp - 0x740], 0x16
jne 0x43e291
mov dword [ebp - 0x228], 0
call fcn.00408cf0
test eax, eax
je 0x43e2f0
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 0x43df09
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43dee7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.0040a9f0
push 0x5b02d4
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 0x43df62
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 0x43df84
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 0x43e2f0
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 0x5b0154
push 0x17
push 0
push 0x5b3b80
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x43e239
mov eax, dword [ebp - 0x220]
xor esi, esi
mov dword [ebp - 0x21c], esi
test eax, eax
je 0x43e012
mov ecx, dword [eax]
lea edx, [ebp - 0x21c]
push edx
push 0x5affcc
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 0x43e06f
mov eax, dword [ebp - 0x228]
test eax, eax
jne 0x43e02e
xor edi, edi
mov dword [ebp - 0x74c], edi
jmp 0x43e045
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x74c], edi
test edi, edi
je 0x43e2dc
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 0x43e06f
mov bl, 1
jmp 0x43e071
xor bl, bl
mov eax, dword [ebp - 0x748]
mov dword [ebp - 4], 0x19
test al, 2
je 0x43e098
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 0x43e225
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 0x43e0d7
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.00579cf7
mov edx, eax
add esp, 8
test edx, edx
js 0x43e2e6
mov ecx, dword [ebp - 0x744]
cmp edx, dword [ecx - 8]
jg 0x43e2e6
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 0x43e160
sub edx, esi
lea ecx, [ebp - 0x288]
sar edx, 1
push edx
push eax
call fcn.0040cb10
lea ecx, [ebp - 0x744]
call fcn.004311c0
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43e190
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 0x43e202
push eax
push str.program_files__x86_
lea ecx, [ebp - 0x270]
call fcn.0044abf0
cmp eax, 0xffffffff
je 0x43e214
push str.program_files
push 0x13
push eax
lea ecx, [ebp - 0x270]
call fcn.0044b960
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
cmovae eax, dword [ebp - 0x270]
push eax
call ebx
test eax, eax
je 0x43e214
mov ecx, dword [ebp - 0x750]
lea eax, [ebp - 0x288]
push eax
call fcn.0044b260
lea ecx, [ebp - 0x288]
call fcn.0041de80
mov esi, dword [ebp - 0x21c]
mov byte [ebp - 4], 0x18
test esi, esi
je 0x43e233
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 0x43e24d
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 0x43e26f
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 0x43e291
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 0x43e2ae
mov ebx, dword [ebp - 0x748]
jmp 0x43de90
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.0045a51d
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.00407940
push 0x80070057
call fcn.00407940
push 0x80004005
call fcn.00407940
int3