Function at 0x4a24d0
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x230
mov esi, esp
mov dword [esi + 0x218], ebp
mov dword [esi + 0x21c], esp
mov dword [esi + 0x228], 0xffffffff
mov dword [esi + 0x224], 0x4a3240
lea eax, [esi + 0x220]
mov bl, 1
mov ecx, dword fs:[0]
mov dword [esi + 0x220], ecx
mov dword fs:[0], eax
cmp dword [0x6d109c], 0
jne 0x4a292d
mov eax, dword [0x6d1088]
test eax, eax
je 0x4a2544
test byte [0x6d1084], 1
jne 0x4a26e5
jmp 0x4a292d
push 0x18
call fcn.005d0220
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 0x228], 0
lea eax, [esi + 0x10]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esi + 8]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], 0
lea eax, [esi + 0x10]
push eax
call fcn.005d3244
add esp, 4
mov edi, eax
cmp eax, 7
jbe 0x4a25b3
sub esp, 0xc
mov al, byte [esi + 4]
mov byte [esp + 4], al
lea eax, [esi + 0x10]
mov dword [esp], edi
mov ecx, dword [esi + 8]
mov dword [esp + 8], eax
call fcn.00405590
jmp 0x4a25d1
mov ebx, dword [esi + 8]
mov eax, edi
add eax, edi
mov dword [ebx + 0x10], edi
push eax
lea eax, [esi + 0x10]
push eax
push ebx
call fcn.0061e340
add esp, 0xc
mov word [ebx + edi*2], 0
mov ecx, dword [esi + 8]
mov edi, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov edx, ecx
cmp edi, 7
jbe 0x4a25e3
mov edx, dword [ecx]
test eax, eax
je 0x4a25fe
mov ebx, eax
mov dword [esi + 0xc], edi
add ebx, 0xffffffff
cmovae ebx, eax
cmp word [edx + ebx*2], 0x5c
jne 0x4a2602
lea edi, [edx + ebx*2]
jmp 0x4a2623
xor eax, eax
jmp 0x4a2654
add ebx, ebx
nop word cs:[eax + eax]
nop
test ebx, ebx
je 0x4a262a
cmp word [edx + ebx - 2], 0x5c
lea edi, [ebx - 2]
mov ebx, edi
jne 0x4a2610
add edi, edx
sub edi, edx
cmp edi, 0xfffffffe
jne 0x4a2632
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0xc]
jmp 0x4a2654
sar edi, 1
lea ecx, [edi + 1]
cmp eax, ecx
jb 0x4a2943
mov eax, dword [esi + 8]
mov dword [eax + 0x10], ecx
mov word [edx + edi*2 + 2], 0
mov ecx, eax
mov eax, dword [eax + 0x10]
mov edi, dword [ecx + 0x14]
mov edx, edi
sub edx, eax
cmp edx, 9
jae 0x4a2691
mov dword [esi + 0x228], 1
sub esp, 0x10
mov al, byte [esi + 4]
mov byte [esp + 4], al
mov dword [esp + 0xc], 9
mov dword [esp + 8], str.debug.log
mov dword [esp], 9
call fcn.0040b010
mov bl, 1
jmp 0x4a26d0
lea edx, [eax + 9]
cmp edi, 7
mov edi, ecx
mov dword [ecx + 0x10], edx
jbe 0x4a26a0
mov edi, dword [ecx]
movzx edx, word [0x658bd8]
movsd xmm0, qword [0x658bd0]
movsd xmm1, qword [str.debug.log]
mov bl, 1
mov word [edi + eax*2 + 0x10], dx
movsd qword [edi + eax*2 + 8], xmm0
movsd qword [edi + eax*2], xmm1
mov word [edi + eax*2 + 0x12], 0
mov eax, dword [esi + 8]
mov dword [0x6d1088], eax
test byte [0x6d1084], 1
je 0x4a292d
cmp dword [eax + 0x14], 8
jb 0x4a26f7
mov eax, dword [eax]
mov dword [esi + 0x228], 0xffffffff
mov dword [esi + 0x228], 0xffffffff
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [eax + 1]
mov dword [0x6d109c], eax
cmp ecx, 2
jb 0x4a2787
lea ecx, [esi + 0x10]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4a2782
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x10], 0xc800001
sbb eax, 0
jl 0x4a2782
mov eax, dword [0x6d1088]
cmp dword [eax + 0x14], 8
jb 0x4a275d
mov eax, dword [eax]
push 0
push 0x80
push 5
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4a2782
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x6d109c]
inc eax
cmp eax, 1
ja 0x4a292d
lea ebx, [esi + 0x10]
mov word [esi + 0x10], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4a292b
cmp eax, 0x104
ja 0x4a292b
mov edi, dword [0x6d1088]
push ebx
call fcn.005d3244
add esp, 4
mov ecx, ebx
mov ebx, eax
mov eax, dword [edi + 0x14]
cmp eax, ebx
jae 0x4a27f5
sub esp, 0xc
mov al, byte [esi + 4]
mov byte [esp + 4], al
mov dword [esp + 8], ecx
mov ecx, edi
mov dword [esp], ebx
call fcn.00405590
mov edx, dword [0x6d1088]
mov edi, edx
jmp 0x4a281e
cmp eax, 8
mov edx, edi
jb 0x4a27fe
mov edx, dword [edi]
mov eax, ebx
mov dword [esi + 8], edx
mov dword [edi + 0x10], ebx
add eax, ebx
push eax
push ecx
push edx
call fcn.0061e340
add esp, 0xc
mov eax, dword [esi + 8]
mov edx, edi
mov word [eax + ebx*2], 0
mov ecx, dword [edi + 0x14]
mov ebx, edx
cmp ecx, 8
jb 0x4a282a
mov ebx, dword [edi]
mov eax, dword [edi + 0x10]
cmp word [ebx + eax*2 - 2], 0x5c
je 0x4a2883
cmp ecx, eax
jne 0x4a2869
sub esp, 0x10
mov al, byte [esi + 4]
mov ecx, edi
mov byte [esp + 4], al
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x65857a
mov dword [esp], 1
call fcn.0040b010
mov edi, dword [0x6d1088]
jmp 0x4a287d
lea ebx, [eax + 1]
cmp ecx, 8
mov dword [edi + 0x10], ebx
jb 0x4a2876
mov edx, dword [edi]
mov dword [edx + eax*2], 0x5c
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov bl, 1
mov edx, ecx
sub edx, eax
cmp edx, 9
jae 0x4a28b8
sub esp, 0x10
mov al, byte [esi + 4]
mov ecx, edi
mov byte [esp + 4], al
mov dword [esp + 0xc], 9
mov dword [esp + 8], str.debug.log
mov dword [esp], 9
call fcn.0040b010
jmp 0x4a28f3
lea edx, [eax + 9]
cmp ecx, 8
mov dword [edi + 0x10], edx
jb 0x4a28c5
mov edi, dword [edi]
movzx ecx, word [0x658bd8]
movsd xmm0, qword [0x658bd0]
movsd xmm1, qword [str.debug.log]
mov word [edi + eax*2 + 0x10], cx
movsd qword [edi + eax*2 + 8], xmm0
movsd qword [edi + eax*2], xmm1
mov word [edi + eax*2 + 0x12], 0
mov eax, dword [0x6d1088]
cmp dword [eax + 0x14], 8
jb 0x4a2900
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x6d109c], eax
inc eax
cmp eax, 1
ja 0x4a292d
mov dword [0x6d109c], 0
xor ebx, ebx
mov eax, dword [esi + 0x220]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x228], 1
call fcn.005e9a00
nop word cs:[eax + eax]
nop dword [eax]
push ebp
sub esp, 0x1c
lea esi, [ebp - 0x22c]
mov ebp, dword [esi + 0x218]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x4a29ab
mov edx, eax
mov eax, dword [eax]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4a29a1
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4a29b0
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0x1c
pop ebp
ret
call fcn.006207e0
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x1c
lea esi, [ebp - 0x22c]
mov ebp, dword [esi + 0x218]
push dword [esi + 8]
call fcn.005d31ac
add esp, 0x20
pop ebp
ret