Function at 0x1019eba
Capabilities:
Get common file path

Disassembly:
mov eax, 0x101f108
call fcn.0101d748
mov eax, 0x1254
call fcn.0101d770
fld qword [0x10032d0]
mov eax, dword [0x1023da8]
fstp qword [ebp - 0x22c]
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x24c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
stosd dword es:[edi], eax
mov eax, dword [esi + 0x90]
lea eax, [eax + eax - 1]
mov dword [ebp - 0x220], eax
push ecx
fild dword [ebp - 0x220]
push ecx
fldln2
fxch st(1)
fyl2x
fld qword [0x10032d0]
fldln2
fxch st(1)
fyl2x
fdivp st(1)
fstp qword [esp]
call dword [sym.imp.msvcrt.dll_ceil]
fld qword [ebp - 0x22c]
fxch st(1)
call sub.msvcrt.dll__CIpow
call sub.msvcrt.dll__ftol
mov ebx, eax
mov eax, dword [esi + 0x90]
shl eax, 3
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, 0x10010
push edi
mov dword [ebp - 0x220], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push edi
mov dword [ebp - 0x238], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push edi
mov dword [ebp - 0x234], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push edi
mov dword [ebp - 0x230], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
lea edi, [ebx + 1]
shl edi, 4
push edi
mov dword [ebp - 0x224], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push edi
mov ebx, eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push edi
mov dword [ebp - 0x228], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
xor eax, eax
add esp, 0x28
cmp dword [ebp - 0x220], eax
je 0x101a026
cmp dword [ebp - 0x238], eax
je 0x101a01a
cmp dword [ebp - 0x234], eax
je 0x101a01a
cmp dword [ebp - 0x230], eax
je 0x101a01a
cmp dword [ebp - 0x224], eax
je 0x101a01a
cmp ebx, eax
je 0x101a01a
cmp dword [ebp - 0x228], eax
je 0x101a01a
cmp edi, eax
je 0x101a01a
push dword [ebp - 0x228]
lea eax, [ebp - 0x24c]
push ebx
push dword [ebp - 0x224]
mov ecx, esi
push dword [ebp - 0x230]
push dword [ebp - 0x234]
push edi
push dword [ebp - 0x238]
push dword [ebp - 0x220]
push eax
call fcn.0101912f
push dword [ebp - 0x220]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x238], 0
je 0x101a03b
push dword [ebp - 0x238]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x234], 0
je 0x101a050
push dword [ebp - 0x234]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x230], 0
je 0x101a065
push dword [ebp - 0x230]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x224], 0
je 0x101a07a
push dword [ebp - 0x224]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
test ebx, ebx
je 0x101a085
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x228], 0
je 0x101a09a
push dword [ebp - 0x228]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
test edi, edi
je 0x101a0a5
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x23c]
push 5
pop edi
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x1260]
push eax
lea eax, [ebp - 0x260]
push eax
mov ecx, esi
mov dword [ebp - 0x260], edi
call fcn.01018fd1
lea ecx, [esi + 0x34]
cmp dword [ecx], edi
jl 0x101a0fd
and dword [ecx], 0
mov edx, dword [ecx]
mov dword [esi + edx*4 + 0x14], eax
mov edx, dword [ecx]
mov dword [esi + edx*4 + 0x38], eax
inc dword [ecx]
inc dword [esi + 0x4c]
cmp dword [esi + 0x4c], edi
jl 0x101a116
mov dword [esi + 0x4c], edi
mov ecx, esi
call fcn.0101964d
push eax
mov ecx, esi
mov dword [ebp - 0x224], eax
call fcn.0101956b
push eax
lea ecx, [esi + 0x94]
mov dword [ebp - 0x228], eax
call fcn.010196a9
mov ebx, eax
lea edi, [esi + 0xc4]
cmp ebx, dword [edi]
je 0x101a157
mov ecx, dword [0x1024c84]
push ebx
call fcn.010133f1
mov dword [edi], ebx
cmp dword [esi + 4], 0
je 0x101a278
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x21c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x101a216
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.0100e774
and dword [ebp - 4], 0
push 0x1003380
lea ecx, [ebp - 0x220]
call fcn.0100d5c8
push 0x1003468
push dword [ebp - 0x220]
call dword [sym.imp.msvcrt.dll__wfopen]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x101a200
push ebx
push dword [ebp - 0x228]
push dword [ebp - 0x224]
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push dword [esi + 0xc]
push 0x1003480
push edi
call dword [sym.imp.msvcrt.dll_fwprintf]
push edi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0x30
mov ecx, dword [ebp - 0x220]
add dword [esi + 0xc], 6
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.01003fb7
cmp dword [esi + 4], 0
je 0x101a278
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x101a278
push 0x10686a8
lea ecx, [ebp - 0x220]
call fcn.010045ba
push ebx
push dword [ebp - 0x228]
lea eax, [ebp - 0x220]
push 0x1003470
push eax
mov dword [ebp - 4], 1
call fcn.01004842
mov edi, dword [ebp - 0x220]
add esp, 0x10
push edi
push 0
push 0xc2
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [edi - 0x10]
call fcn.01003fb7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101d23a
leave
ret