Function at 0x101b984
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1038334]
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xc0]
push edi
mov edi, dword [0x1038258]
cmp eax, ecx
je 0x101b9d1
cmp byte [section..data], 0
mov ebx, eax
mov dword [0x1038334], ecx
je 0x101b9bc
push ecx
call fcn.0100514a
test eax, eax
setne al
mov byte [0x1038416], al
jmp 0x101b9c3
mov byte [0x1038416], 0
push 1
call fcn.01007c45
push ebx
push edi
call fcn.01024adb
mov eax, dword [esi + 0xc0]
cmp dword [0x1038330], eax
je 0x101ba12
cmp byte [section..data], 0
mov dword [0x1038330], eax
je 0x101b9ff
push eax
call fcn.0100514a
test eax, eax
setne al
mov byte [0x1038415], al
jmp 0x101ba06
mov byte [0x1038415], 0
push 0
call fcn.01007c45
call fcn.010245dd
test dword [0x10382cc], 0x200
jne 0x101ba63
mov ax, word [esi]
cmp ax, word [edi + 8]
jne 0x101ba31
mov ax, word [esi + 2]
cmp ax, word [edi + 0xa]
je 0x101ba63
mov ebx, dword [0x10383cc]
test ebx, ebx
je 0x101ba49
cmp dword [ebx + 0x40], 0
je 0x101ba49
push 0
push ebx
call fcn.0101406d
push 1
push dword [esi]
push edi
call fcn.0101e7d2
test ebx, ebx
je 0x101ba63
cmp dword [ebx + 0x40], 0
je 0x101ba63
push ebx
call fcn.01014127
push dword [esi + 0xc0]
lea eax, [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x10]
push eax
push dword [esi + 0x14]
call fcn.01006f49
test byte [0x10382f8], 1
mov ebx, eax
jne 0x101ba95
push dword [esi + 0xc0]
push ebx
push edi
call fcn.0101c948
jmp 0x101bac1
push 0
push dword [0x1038260]
call fcn.010205c6
push dword [esi + 0xc0]
push ebx
push edi
call fcn.0101c948
call fcn.010219d2
push 4
push dword [0x1038260]
call fcn.010205c6
movzx eax, byte [edi + 0x47]
push eax
push dword [esi + 0x5c]
push edi
call fcn.01017fe0
push 0
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.01004bbf
movzx eax, word [esi + 4]
mov cx, word [ebp - 0xc]
cmp ax, cx
mov word [ebp + 8], ax
jl 0x101baf0
mov word [ebp + 8], cx
movzx eax, word [esi + 6]
mov bx, word [ebp - 0xa]
cmp ax, bx
jge 0x101bb00
mov bx, ax
mov ax, word [edi + 0x10]
sub ax, word [edi + 0xc]
inc ax
cmp word [ebp + 8], ax
jne 0x101bb1f
mov ax, word [edi + 0x12]
sub ax, word [edi + 0xe]
inc ax
cmp bx, ax
je 0x101bb82
lea eax, [ebp - 0x3c]
push eax
push dword [0x1038260]
mov dword [ebp - 0x3c], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov cx, word [edi + 0x10]
sub cx, word [edi + 0xc]
mov eax, dword [edi + 0x74]
movsx edx, word [ebp + 8]
inc cx
movsx ecx, cx
sub edx, ecx
mov cx, word [edi + 0x12]
sub cx, word [edi + 0xe]
cwde
imul edx, eax
add dword [ebp - 0x18], edx
mov eax, dword [edi + 0x74]
inc cx
shr eax, 0x10
movsx ecx, cx
movsx edx, bx
cwde
sub edx, ecx
imul edx, eax
add dword [ebp - 0x14], edx
lea eax, [ebp - 0x3c]
push eax
push dword [0x1038260]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
test dword [0x10382cc], 0x10000000
je 0x101bbe5
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x101bbe5
test byte [esi + 0x60], 1
jne 0x101bbc1
test byte [0x10382f8], 1
je 0x101bbe5
call fcn.01021bcb
mov eax, 0xfffe
and word [0x10382f8], ax
push 0
jmp 0x101bbda
cmp word [0x10382f8], 0
jne 0x101bbe5
call fcn.010219d2
or word [0x10382f8], 1
push 4
push dword [0x1038260]
call fcn.010205c6
test byte [esi + 0x60], 2
je 0x101bbf7
or dword [0x10382cc], 0x800
jmp 0x101bc01
and dword [0x10382cc], 0xfffff7ff
test byte [esi + 0x60], 4
je 0x101bc13
or dword [0x10382cc], 0x10000
jmp 0x101bc36
and dword [0x10382cc], 0xfffeffff
push 5
xor eax, eax
push eax
push eax
push dword [esi + 0xc]
push dword [esi + 8]
push eax
push dword [0x1038260]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x60]
shr eax, 3
and eax, 1
cmp byte [0x10382ed], al
je 0x101bc69
push 0
push edi
call fcn.0101804b
mov eax, dword [esi + 0x60]
mov ecx, dword [0x10383cc]
shr eax, 3
and al, 1
mov byte [0x10382ed], al
test ecx, ecx
je 0x101bc69
mov byte [ecx + 0x4b], al
push 0x40
lea eax, [esi + 0x70]
push eax
push 0x1038348
call dword [sym.imp.msvcrt.dll_memmove]
movzx eax, word [esi + 0x66]
add esp, 0xc
push 1
push eax
movzx eax, word [esi + 0x64]
push eax
push edi
call fcn.01009570
push dword [esi + 0x68]
call fcn.01015112
mov ax, word [esi + 0x6c]
pop edi
mov word [0x10382a6], ax
test byte [esi + 0x60], 0x10
pop esi
pop ebx
je 0x101bcb6
or dword [0x10382cc], 0x100000
jmp 0x101bcc0
and dword [0x10382cc], 0xffefffff
call fcn.01006e36
leave
ret 4