Function at 0x41ebb0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4363c4
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4b3040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x150], ecx
push 0x38
mov dword [ebp - 0x14c], 0
call fcn.00432cbf
mov esi, eax
mov dword [ebp - 0x16c], esi
push 0x38
push 0
push esi
mov dword [ebp - 4], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x1a8], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1a4], 0
lea ecx, [ebp - 0x1b8]
movups xmmword [ebp - 0x1b8], xmm0
push 0xb
push str.adb_adb.exe
call fcn.00405d80
xorps xmm0, xmm0
mov dword [ebp - 0x14c], 1
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 2
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xf
mov byte [esi + 0x18], 0
lea eax, [ebp - 0x1b8]
mov byte [ebp - 4], 3
cmp esi, eax
je 0x41ecb6
cmp dword [ebp - 0x1a4], 0xf
mov ecx, esi
push dword [ebp - 0x1a8]
cmova eax, dword [ebp - 0x1b8]
push eax
call fcn.00406160
push 0
push 0x439668
lea ecx, [esi + 0x18]
call fcn.00406160
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x224]
push 0xb
xorps xmm0, xmm0
mov dword [ebp - 0x214], 0
push str.adb_adb.exe
movups xmmword [ebp - 0x224], xmm0
mov dword [ebp - 0x210], 0
call fcn.00405d80
mov dword [ebp - 0x20c], esi
push 0x38
mov dword [ebp - 4], 5
call fcn.00432cbf
mov esi, eax
mov dword [ebp - 0x16c], esi
push 0x38
push 0
push esi
mov byte [ebp - 4], 6
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x190], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18c], 0
lea ecx, [ebp - 0x1a0]
movups xmmword [ebp - 0x1a0], xmm0
push 0x11
push str.adbAdbWinApi.dll
call fcn.00405d80
xorps xmm0, xmm0
mov dword [ebp - 0x14c], 3
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 8
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xf
mov byte [esi + 0x18], 0
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 9
cmp esi, eax
je 0x41eddd
cmp dword [ebp - 0x18c], 0xf
mov ecx, esi
push dword [ebp - 0x190]
cmova eax, dword [ebp - 0x1a0]
push eax
call fcn.00406160
push 0
push 0x439668
lea ecx, [esi + 0x18]
call fcn.00406160
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x208]
push 0x11
xorps xmm0, xmm0
mov dword [ebp - 0x1f8], 0
push str.adbAdbWinApi.dll
movups xmmword [ebp - 0x208], xmm0
mov dword [ebp - 0x1f4], 0
call fcn.00405d80
mov dword [ebp - 0x1f0], esi
push 0x38
mov dword [ebp - 4], 0xb
call fcn.00432cbf
mov esi, eax
mov dword [ebp - 0x16c], esi
push 0x38
push 0
push esi
mov byte [ebp - 4], 0xc
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x178], 0
xorps xmm0, xmm0
mov dword [ebp - 0x174], 0
lea ecx, [ebp - 0x188]
movups xmmword [ebp - 0x188], xmm0
push 0xc
push str.acs.qemu.sys
call fcn.00405d80
xorps xmm0, xmm0
mov dword [ebp - 0x14c], 7
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0xe
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xf
mov byte [esi + 0x18], 0
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 0xf
cmp esi, eax
je 0x41ef04
cmp dword [ebp - 0x174], 0xf
mov ecx, esi
push dword [ebp - 0x178]
cmova eax, dword [ebp - 0x188]
push eax
call fcn.00406160
push 0
push 0x439668
lea ecx, [esi + 0x18]
call fcn.00406160
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x1ec]
push 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x1dc], 0
push str.acs.qemu.sys
movups xmmword [ebp - 0x1ec], xmm0
mov dword [ebp - 0x1d8], 0
call fcn.00405d80
mov dword [ebp - 0x1d4], esi
mov esi, dword [ebp - 0x150]
lea eax, [ebp - 0x1d0]
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0x13
push eax
push ecx
lea ecx, [esi + 4]
call fcn.0041f740
push fcn.004038d0
push 3
push 0x1c
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0x12
push eax
call fcn.00432f76
mov dword [ebp - 4], 0x11
mov ecx, dword [ebp - 0x174]
cmp ecx, 0xf
jbe 0x41efd7
mov edx, dword [ebp - 0x188]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41efcd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f047
push ecx
push edx
call fcn.00432cef
add esp, 8
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x18c]
cmp ecx, 0xf
jbe 0x41f014
mov edx, dword [ebp - 0x1a0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41f00a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f047
push ecx
push edx
call fcn.00432cef
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1a4]
cmp ecx, 0xf
jbe 0x41f057
mov edx, dword [ebp - 0x1b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41f04d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41f04d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00432cef
add esp, 8
push 0
push 0x23
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x41f0a2
push str.SHGetSpecialFolderPathA_failed
call fcn.00406040
add esp, 4
mov dword [ebp - 0x158], 0
xorps xmm0, xmm0
mov dword [ebp - 0x154], 0
movups xmmword [ebp - 0x168], xmm0
push 0
push 0x439668
jmp 0x41f0e1
xorps xmm0, xmm0
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x154], 0
movups xmmword [ebp - 0x168], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f0d0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x168]
call fcn.00405d80
mov dword [ebp - 4], 0x14
mov edx, dword [ebp - 0x154]
mov eax, edx
mov ecx, dword [ebp - 0x158]
sub eax, ecx
push 9
push str._ac_files
cmp eax, 9
jb 0x41f145
cmp edx, 0xf
lea esi, [ebp - 0x168]
lea eax, [ecx + 9]
cmova esi, dword [ebp - 0x168]
add esi, ecx
mov dword [ebp - 0x158], eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + 9], 0
lea eax, [ebp - 0x168]
mov esi, dword [ebp - 0x150]
add esp, 0xc
jmp 0x41f15f
mov byte [ebp - 0x150], 0
lea ecx, [ebp - 0x168]
push dword [ebp - 0x150]
push 9
call fcn.0040a2e0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x12c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x11c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x154]
cmp ecx, 0xf
jbe 0x41f1c7
mov edx, dword [ebp - 0x168]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41f1bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41f1bd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00432cef
add esp, 8
mov ecx, dword [ebp - 0x11c]
mov eax, accept
sub eax, ecx
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0xf
mov byte [ebp - 0x168], 0
cmp eax, 4
jb 0x41f560
cmp dword [ebp - 0x118], 0xf
lea eax, [ebp - 0x12c]
push 4
cmova eax, dword [ebp - 0x12c]
push str._adb
push ecx
push eax
push ecx
push dword [ebp - 0x16c]
lea ecx, [ebp - 0x144]
call fcn.0040aa70
mov dword [ebp - 0x14c], 0xe0
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x12c]
cmp ecx, eax
je 0x41f25c
cmp dword [ebp - 0x118], 0xf
push dword [ebp - 0x11c]
cmova eax, dword [ebp - 0x12c]
push eax
call fcn.00406160
cmp dword [ebp - 0x130], 0xf
lea eax, [ebp - 0x144]
cmova eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41f280
test al, 0x10
jne 0x41f2b0
cmp dword [ebp - 0x130], 0xf
lea eax, [ebp - 0x144]
push 0
cmova eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41f2b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x41f529
mov edi, dword [esi + 8]
mov esi, dword [edi]
cmp esi, edi
je 0x41f49f
nop dword [eax]
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x150], eax
mov eax, accept
sub eax, ecx
cmp eax, 1
jb 0x41f560
cmp dword [ebp - 0x118], 0xf
lea eax, [ebp - 0x12c]
push 1
cmova eax, dword [ebp - 0x12c]
push 0x43bc70
push ecx
push eax
push ecx
push dword [ebp - 0x16c]
lea ecx, [ebp - 0x23c]
call fcn.0040aa70
or dword [ebp - 0x14c], 8
push dword [ebp - 0x150]
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0x18
call fcn.004078f0
or dword [ebp - 0x14c], 0x10
lea ecx, [ebp - 0x1d0]
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, dword [esi + 0x20]
add eax, 0x18
movq qword [ebp - 0x170], xmm1
movq qword [ebp - 0x1c0], xmm1
mov dword [ebp - 0x150], eax
movups xmmword [ebp - 0x160], xmm0
movups xmmword [ebp - 0x1d0], xmm0
cmp eax, ecx
je 0x41f3ea
mov ecx, dword [eax + 0x14]
cmp ecx, 0xf
jbe 0x41f3c6
mov eax, dword [eax]
inc ecx
cmp ecx, 0x1000
jb 0x41f3a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f047
mov eax, edx
push ecx
push eax
call fcn.00432cef
movups xmm0, xmmword [ebp - 0x160]
add esp, 8
mov eax, dword [ebp - 0x150]
movq xmm1, qword [ebp - 0x170]
mov dword [eax + 0x10], 0
mov ecx, 0xf
mov dword [eax + 0x14], 0xf
movups xmmword [eax], xmm0
mov byte [ebp - 0x1d0], 0
movq qword [eax + 0x10], xmm1
jmp 0x41f3f0
mov ecx, dword [ebp - 0x1bc]
cmp ecx, 0xf
jbe 0x41f424
mov edx, dword [ebp - 0x1d0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41f41a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f047
push ecx
push edx
call fcn.00432cef
add esp, 8
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x228]
cmp ecx, 0xf
jbe 0x41f462
mov edx, dword [ebp - 0x23c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41f458
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f047
push ecx
push edx
call fcn.00432cef
add esp, 8
mov eax, dword [esi + 0x20]
add eax, 0x18
cmp dword [eax + 0x14], 0xf
jbe 0x41f470
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41f495
mov eax, dword [esi + 0x20]
push dword [eax + 0x34]
push dword [eax + 0x30]
add eax, 0x18
push eax
call fcn.00406290
test al, al
je 0x41f529
mov esi, dword [esi]
cmp esi, edi
jne 0x41f2c0
mov byte [ebp - 0x145], 1
mov ecx, dword [ebp - 0x130]
cmp ecx, 0xf
jbe 0x41f4dc
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41f4d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f523
push ecx
push edx
call fcn.00432cef
add esp, 8
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
cmp ecx, 0xf
jbe 0x41f53f
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41f535
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41f535
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov byte [ebp - 0x145], 0
jmp 0x41f4a6
push ecx
push edx
call fcn.00432cef
add esp, 8
mov al, byte [ebp - 0x145]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret
call fcn.00403d10
int3