Function at 0x1033dd3
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x10372d8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
je 0x1033e38
cmp dword [ebp + 0x10], ebx
jne 0x1033e02
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
jmp 0x1033e1f
lea ecx, [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x228]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x224]
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.01033ac0
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
jmp 0x1034077
cmp dword [esi + 0xc], ebx
push edi
jne 0x1033e84
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1033e7b
push 0x1003a3c
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01007b43
test eax, eax
jl 0x1033e7b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], ebx
je 0x1034060
call fcn.0102e096
push eax
mov dword [ebp - 0x210], eax
call fcn.01016661
test eax, eax
jne 0x1033ea3
mov dword [ebp - 0x210], 0x409
push dword [ebp - 0x210]
call fcn.0101668f
cmp dword [esi + 8], ebx
mov dword [ebp - 0x218], eax
jne 0x1033f33
push 0x3c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x1033edf
mov ecx, eax
call fcn.01032b6b
jmp 0x1033ee1
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1034076
xor eax, eax
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x1033ef2
mov eax, 0x8007000e
jmp 0x1034076
push dword [ebp - 0x210]
mov ecx, eax
push dword [ebp - 0x218]
push ebx
push 0x1033a91
push dword [esi + 0xc]
call fcn.0103370c
mov edi, eax
cmp edi, ebx
jge 0x1033f2c
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x1033f22
push 1
call fcn.01033a2e
mov dword [esi + 8], ebx
mov eax, edi
jmp 0x1034076
mov ecx, esi
call fcn.01033bcb
cmp dword [esi + 0x18], ebx
jne 0x1033f81
push 4
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x1033f4a
mov dword [eax], ebx
mov ecx, eax
jmp 0x1033f4c
xor ecx, ecx
cmp ecx, ebx
mov dword [esi + 0x18], ecx
je 0x1033ee8
push ebx
push ebx
push 0xf003f
push ebx
push ebx
push dword [0x1037260]
push 0x80000001
call fcn.0102ede6
test eax, eax
je 0x1033f81
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x1033f7e
push 1
call fcn.0102ae12
mov dword [esi + 0x18], ebx
cmp dword [ebp + 0x10], ebx
je 0x1033fcb
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x1033fd7
push 0x100455c
lea eax, [ebp - 0x214]
push eax
call fcn.0102ee77
test eax, eax
jne 0x1033fab
mov eax, dword [ebp - 0x214]
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x18]
push 0x1004538
lea eax, [ebp - 0x214]
push eax
call fcn.0102ee77
test eax, eax
jne 0x1033fd7
mov eax, dword [ebp - 0x214]
jmp 0x1033fd4
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], eax
movzx eax, word [ebp - 0x210]
push eax
mov ebx, 0x400
call fcn.0102dc8e
test eax, eax
je 0x1033ff2
mov ebx, 0xc00
push 0xd
xor eax, eax
pop ecx
lea edi, [ebp - 0x25c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x218]
push 0x1003a2c
push dword [esi + 0xc]
mov dword [ebp - 0x250], eax
mov eax, dword [0x1037d20]
mov dword [ebp - 0x25c], 0x34
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x248], 0xc1
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x23c], 0x1037d28
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x25c]
push ecx
call eax
test eax, eax
mov dword [esi], eax
jne 0x1034074
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1033ece
call esi
jmp 0x1034076
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01034242
leave
ret 0xc