Function at 0x41c3f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x22c
mov eax, dword [0x4a3ecc]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x4a551c], 0
jne 0x41c7b2
mov esi, dword [0x4a550c]
test esi, esi
jne 0x41c59d
mov dword [esp], 0x18
call fcn.0045b99a
mov esi, eax
lea ebx, [ebp - 0x218]
mov dword [esp], ebx
mov dword [esp + 8], 0x208
mov dword [esp + 4], 0xff
call fcn.0045d780
mov dword [esp + 4], ebx
xor edi, edi
mov dword [esp], edi
mov dword [esp + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 0xc
pcmpeqd xmm0, xmm0
movdqu xmmword [esi], xmm0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], 0
mov dword [esp], ebx
call fcn.00464f10
mov edi, eax
cmp eax, 7
jbe 0x41c4ac
mov al, byte [ebp - 0x21c]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
mov ecx, esi
call fcn.004062b0
sub esp, 0xc
jmp 0x41c4c9
mov dword [esi + 0x10], edi
mov eax, edi
add eax, edi
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0045d200
mov word [esi + edi*2], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, esi
cmp ecx, 8
mov bl, 1
jb 0x41c4da
mov edx, dword [esi]
test eax, eax
je 0x41c4f2
lea ebx, [eax - 1]
cmp ebx, eax
cmovae ebx, eax
cmp word [edx + ebx*2], 0x5c
jne 0x41c4f6
lea edi, [edx + ebx*2]
jmp 0x41c50b
xor eax, eax
jmp 0x41c535
add ebx, ebx
test ebx, ebx
je 0x41c533
lea edi, [ebx - 2]
cmp word [edx + ebx - 2], 0x5c
mov ebx, edi
jne 0x41c4f8
add edi, edx
sub edi, edx
cmp edi, 0xfffffffe
mov bl, 1
je 0x41c535
sar edi, 1
lea ecx, [edi + 1]
cmp eax, ecx
jb 0x41c7c9
mov dword [esi + 0x10], ecx
mov word [edx + edi*2 + 2], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
jmp 0x41c535
mov bl, 1
mov edx, ecx
sub edx, eax
cmp edx, 9
jae 0x41c568
mov al, byte [ebp - 0x21c]
mov byte [esp + 4], al
mov eax, 9
mov dword [esp + 0xc], eax
mov dword [esp], eax
mov dword [esp + 8], str.debug.log
mov ecx, esi
call fcn.00406610
sub esp, 0x10
jmp 0x41c597
lea edx, [eax + 9]
mov dword [esi + 0x10], edx
mov edx, esi
cmp ecx, 8
jb 0x41c577
mov edx, dword [esi]
movzx ecx, word [0x48b946]
mov word [edx + eax*2 + 0x10], cx
movdqu xmm0, xmmword [str.debug.log]
movdqu xmmword [edx + eax*2], xmm0
mov word [edx + eax*2 + 0x12], 0
mov dword [0x4a550c], esi
test byte [0x4a3074], 1
je 0x41c7b2
cmp dword [esi + 0x14], 8
jb 0x41c5b2
mov esi, dword [esi]
movdqa xmm0, xmmword [0x48b890]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov dword [0x4a551c], eax
inc eax
cmp eax, 1
ja 0x41c7b2
lea esi, [ebp - 0x216]
mov dword [esp], esi
mov dword [esp + 8], 0x206
mov dword [esp + 4], 0xff
call fcn.0045d780
mov word [esi - 2], 0
lea edi, [ebp - 0x218]
mov dword [esp + 4], edi
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
sub esp, 8
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x41c7b0
mov esi, dword [0x4a550c]
mov dword [esp], edi
call fcn.00464f10
mov ecx, edi
mov edi, eax
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x41c677
mov al, byte [ebp - 0x21c]
mov byte [esp + 4], al
mov dword [esp + 8], ecx
mov dword [esp], edi
mov ecx, esi
call fcn.004062b0
sub esp, 0xc
mov edx, dword [0x4a550c]
mov esi, edx
jmp 0x41c6a1
mov ebx, esi
cmp eax, 8
jb 0x41c680
mov ebx, dword [esi]
mov dword [esi + 0x10], edi
mov eax, edi
add eax, edi
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.0045d200
mov word [ebx + edi*2], 0
mov edx, esi
mov bl, 1
mov ecx, dword [esi + 0x14]
mov edi, edx
cmp ecx, 8
jb 0x41c6ad
mov edi, dword [esi]
mov eax, dword [esi + 0x10]
cmp word [edi + eax*2 - 2], 0x5c
je 0x41c704
cmp ecx, eax
jne 0x41c6ea
mov al, byte [ebp - 0x21c]
mov byte [esp + 4], al
xor eax, eax
inc eax
mov dword [esp + 0xc], eax
mov dword [esp], eax
mov dword [esp + 8], 0x48b932
mov ecx, esi
call fcn.00406610
sub esp, 0x10
mov esi, dword [0x4a550c]
jmp 0x41c6fe
lea edi, [eax + 1]
mov dword [esi + 0x10], edi
cmp ecx, 8
jb 0x41c6f7
mov edx, dword [esi]
mov dword [edx + eax*2], 0x5c
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, ecx
sub edx, eax
cmp edx, 9
jae 0x41c737
mov al, byte [ebp - 0x21c]
mov byte [esp + 4], al
mov eax, 9
mov dword [esp + 0xc], eax
mov dword [esp], eax
mov dword [esp + 8], str.debug.log
mov ecx, esi
call fcn.00406610
sub esp, 0x10
jmp 0x41c764
lea edx, [eax + 9]
mov dword [esi + 0x10], edx
cmp ecx, 8
jb 0x41c744
mov esi, dword [esi]
movzx ecx, word [0x48b946]
mov word [esi + eax*2 + 0x10], cx
movdqu xmm0, xmmword [str.debug.log]
movdqu xmmword [esi + eax*2], xmm0
mov word [esi + eax*2 + 0x12], 0
mov eax, dword [0x4a550c]
cmp dword [eax + 0x14], 8
jb 0x41c771
mov eax, dword [eax]
movdqa xmm0, xmmword [0x48b890]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov dword [0x4a551c], eax
inc eax
cmp eax, 1
ja 0x41c7b2
mov dword [0x4a551c], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045be32
mov eax, ebx
add esp, 0x22c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00455b30
int3