Function at 0x1034621
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x10372b8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
je 0x1034686
cmp dword [ebp + 0x10], ebx
jne 0x1034650
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
jmp 0x103466d
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.0103430e
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
jmp 0x10348c5
cmp dword [esi + 0xc], ebx
push edi
jne 0x10346d2
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10346c9
push 0x1003a5c
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01007c70
test eax, eax
jl 0x10346c9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], ebx
je 0x10348ae
call fcn.0102e593
push eax
mov dword [ebp - 0x210], eax
call fcn.01016a81
test eax, eax
jne 0x10346f1
mov dword [ebp - 0x210], 0x409
push dword [ebp - 0x210]
call fcn.01016aaf
cmp dword [esi + 8], ebx
mov dword [ebp - 0x218], eax
jne 0x1034781
push 0x3c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x103472d
mov ecx, eax
call fcn.010333a3
jmp 0x103472f
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x10348c4
xor eax, eax
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x1034740
mov eax, 0x8007000e
jmp 0x10348c4
push dword [ebp - 0x210]
mov ecx, eax
push dword [ebp - 0x218]
push ebx
push 0x10342df
push dword [esi + 0xc]
call fcn.01033f4a
mov edi, eax
cmp edi, ebx
jge 0x103477a
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x1034770
push 1
call fcn.0103427c
mov dword [esi + 8], ebx
mov eax, edi
jmp 0x10348c4
mov ecx, esi
call fcn.01034419
cmp dword [esi + 0x18], ebx
jne 0x10347cf
push 4
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x1034798
mov dword [eax], ebx
mov ecx, eax
jmp 0x103479a
xor ecx, ecx
cmp ecx, ebx
mov dword [esi + 0x18], ecx
je 0x1034736
push ebx
push ebx
push 0xf003f
push ebx
push ebx
push dword [0x1037240]
push 0x80000001
call fcn.0102f30d
test eax, eax
je 0x10347cf
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x10347cc
push 1
call fcn.0102b2db
mov dword [esi + 0x18], ebx
cmp dword [ebp + 0x10], ebx
je 0x1034819
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x1034825
push 0x10045bc
lea eax, [ebp - 0x214]
push eax
call fcn.0102f39e
test eax, eax
jne 0x10347f9
mov eax, dword [ebp - 0x214]
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x18]
push 0x1004598
lea eax, [ebp - 0x214]
push eax
call fcn.0102f39e
test eax, eax
jne 0x1034825
mov eax, dword [ebp - 0x214]
jmp 0x1034822
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.0102e18b
test eax, eax
je 0x1034840
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 0x1003a4c
push dword [esi + 0xc]
mov dword [ebp - 0x250], eax
mov eax, dword [0x1037d00]
mov dword [ebp - 0x25c], 0x34
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x248], 0xc1
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x23c], 0x1037d08
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x25c]
push ecx
call eax
test eax, eax
mov dword [esi], eax
jne 0x10348c2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x103471c
call esi
jmp 0x10348c4
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01034a90
leave
ret 0xc