Function at 0x102bd12
Capabilities:
Check if file exists

Disassembly:
push 0x92c
mov eax, 0x1042fd9
call fcn.01001615
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, 0x102c1c0
push ebx
push dword [0x1050b74]
mov dword [ebp - 0x8dc], edi
push dword [0x1050b70]
call dword [0x1050b68]
test al, al
je 0x102bd68
mov eax, dword [esi + 4]
mov ecx, dword [edi + 4]
push eax
push ecx
push 0x102c18c
push ebx
push dword [0x1050b74]
push dword [0x1050b70]
call fcn.0102adf2
xor ebx, ebx
push ebx
push 0xb
push 0x100af48
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x8d0]
mov dword [ebp - 0x8e0], ebx
mov dword [ebp - 0x8d8], ebx
mov dword [ebp - 0x8d4], ebx
mov dword [ebp - 0x8e4], ebx
call fcn.0100e136
push dword [esi + 4]
mov dword [ebp - 4], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x102bdb9
mov dword [ebp - 0x8d4], 0xb7
jmp 0x102c138
push 0x10193dc
push 0xb
lea eax, [ebp - 0x938]
push eax
mov ecx, esi
call fcn.0102bae2
mov ecx, eax
call fcn.01004ded
test eax, eax
je 0x102bde8
mov dword [ebp - 0x8d4], 0x7b
jmp 0x102c138
push 0x206
lea eax, [ebp - 0x216]
push ebx
push eax
mov word [ebp - 0x218], bx
call sub.msvcrt.dll_memset
push 0x206
lea eax, [ebp - 0x41e]
push ebx
push eax
mov word [ebp - 0x420], bx
call sub.msvcrt.dll_memset
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
add esp, 0x18
push eax
push ecx
push 0x103
lea eax, [ebp - 0x218]
push eax
call fcn.0100d2dc
test eax, eax
jl 0x102c138
mov eax, dword [edi + 0xc]
add eax, 3
cmp eax, 0x104
jae 0x102c138
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 4]
mov word [ebp + eax*2 - 0x218], 0x5c
mov word [ebp + eax*2 - 0x216], 0x2a
mov word [ebp + eax*2 - 0x214], bx
mov word [ebp + eax*2 - 0x212], bx
mov eax, dword [esi + 0xc]
push eax
push ecx
push 0x103
lea eax, [ebp - 0x420]
push eax
call fcn.0100d2dc
test eax, eax
jl 0x102c138
mov eax, dword [esi + 0xc]
mov ecx, dword [0x1050b58]
push 2
mov dword [ebp - 0x8d8], 1
mov word [ebp + eax*2 - 0x41e], bx
call fcn.01001539
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp eax, ebx
mov dword [ebp - 0x8d4], eax
jne 0x102c138
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x924], ebx
lea edi, [ebp - 0x920]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x102c1d0
push edi
push dword [0x1050b74]
lea eax, [ebp - 0x218]
push dword [0x1050b70]
mov dword [ebp - 0x91c], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x920], 2
mov dword [ebp - 0x918], eax
mov word [ebp - 0x914], 0x614
mov dword [ebp - 0x912], ebx
mov dword [ebp - 0x90e], ebx
mov dword [ebp - 0x90a], ebx
call dword [0x1050b68]
test al, al
je 0x102bf68
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x102c19c
push edi
push dword [0x1050b74]
push dword [0x1050b70]
call fcn.0102adf2
lea eax, [ebp - 0x924]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, ebx
mov dword [ebp - 0x8d4], eax
jne 0x102c132
mov ecx, dword [0x1050b58]
push 2
call fcn.01001539
sub esp, 0x94
mov ecx, esp
mov dword [ebp - 0x92c], esp
push esi
call fcn.0102b140
sub esp, 0x94
mov ecx, esp
mov dword [ebp - 0x928], esp
push dword [ebp - 0x8dc]
mov byte [ebp - 4], 1
call fcn.0102b140
push 0x208
lea eax, [ebp - 0x830]
push eax
mov byte [ebp - 4], bl
call fcn.0102b4c5
cmp eax, ebx
je 0x102c132
mov ecx, dword [0x1050b58]
push 2
call fcn.01001539
lea eax, [ebp - 0x830]
push eax
push ebx
push 0x102b310
push ebx
push ebx
push dword [ebp - 0x834]
mov dword [ebp - 0x8e4], 0x3f5
call fcn.0102d1fa
test eax, eax
je 0x102c132
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x900]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x102c1e0
push esi
push dword [0x1050b74]
lea eax, [ebp - 0x218]
push dword [0x1050b70]
mov dword [ebp - 0x8e0], 1
mov dword [ebp - 0x8d8], ebx
mov dword [ebp - 0x904], ebx
mov dword [ebp - 0x900], 3
mov dword [ebp - 0x8fc], eax
mov dword [ebp - 0x8f8], ebx
mov word [ebp - 0x8f4], 0x614
mov dword [ebp - 0x8f2], ebx
mov dword [ebp - 0x8ee], ebx
mov dword [ebp - 0x8ea], ebx
call dword [0x1050b68]
test al, al
je 0x102c0ac
lea eax, [ebp - 0x218]
push eax
push 0x102c1ac
push esi
push dword [0x1050b74]
push dword [0x1050b70]
call fcn.010336ce
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push 0x1019428
lea ecx, [ebp - 0x8d0]
call fcn.0102d4b4
push 0x10193f4
lea ecx, [ebp - 0x8d0]
call fcn.0102d4b4
push 0x102c220
lea ecx, [ebp - 0x8d0]
call fcn.0102d4b4
push 0x102c1f0
lea ecx, [ebp - 0x8d0]
call fcn.0102d4b4
xor eax, eax
cmp dword [ebp - 0x8d8], ebx
lea ecx, [ebp - 0x8d0]
setne al
push eax
push 0x100e21c
call fcn.0102d59f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8d0]
call fcn.0100f082
mov eax, dword [ebp - 0x8e0]
call fcn.01001652
ret 8
mov edi, dword [ebp - 0x8dc]
push edi
push 0x1019428
lea ecx, [ebp - 0x8d0]
call fcn.0102d5e9
push esi
push 0x10193f4
lea ecx, [ebp - 0x8d0]
call fcn.0102d5e9
push dword [ebp - 0x8d4]
lea ecx, [ebp - 0x8d0]
push 0x102c220
call fcn.0102d59f
push dword [ebp - 0x8e4]
lea ecx, [ebp - 0x8d0]
push 0x102c1f0
call fcn.0102d59f
jmp 0x102c0f9