Function at 0x414530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x460
mov eax, dword [0x54c03c]
mov esi, ecx
lea edi, [ecx + 8]
mov ecx, edi
xor eax, ebp
mov dword [esp + 0x458], eax
lea eax, [esp + 0x18]
push eax
call fcn.00414fe0
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x18]
cmp dword [esi], 3
mov dword [esp], eax
jne 0x41407b
call fcn.00432680
test al, al
jne 0x41407b
lea ecx, [esp + 0x40]
call fcn.004326b0
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov eax, dword [edi + eax + 0x30]
mov ecx, dword [eax + 4]
mov dword [esp + 0x444], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x440]
push eax
call fcn.00416bf0
add esp, 4
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x20]
mov ecx, dword [esp + 0x444]
mov ebx, eax
test ecx, ecx
je 0x41405f
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x41405f
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
movsx eax, bl
mov ecx, edi
push eax
call fcn.00416d30
mov ecx, edi
call fcn.00401c38
lea ecx, [esp + 0x40]
push edi
call fcn.00432b60
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov eax, dword [edi + eax + 0x30]
mov ecx, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x40]
push eax
call fcn.00416bf0
add esp, 4
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x20]
mov ecx, dword [esp + 0x44]
mov ebx, eax
test ecx, ecx
je 0x4140c1
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4140c1
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
movsx eax, bl
mov ecx, edi
push eax
call fcn.00416d30
mov ecx, edi
call fcn.00401c38
lea edi, [esi + 0xc]
lea ebx, [esp + 0x440]
mov ecx, edi
push ebx
call fcn.00416ae0
mov eax, dword [0x54d6b0]
test eax, eax
je 0x414155
push ebx
push dword [esi + 0xa0]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi]
call eax
add esp, 0x14
test al, al
je 0x414155
mov eax, dword [esp + 0x454]
cmp eax, 0x10
jb 0x41449f
mov ecx, dword [esp + 0x440]
lea ebx, [eax + 1]
cmp ebx, 0x1000
jb 0x414146
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41452b
add eax, 0x24
mov ecx, edx
mov ebx, eax
push ebx
push ecx
call fcn.004d4589
add esp, 8
jmp 0x41449f
test byte [section..data], 2
jne 0x41418b
cmp dword [esi], 2
jl 0x4141f5
push 2
call fcn.004dbd88
add esp, 4
mov ecx, dword [esp + 0x450]
cmp dword [esp + 0x454], 0xf
jbe 0x4141ce
mov edx, dword [esp + 0x440]
jmp 0x4141d5
cmp dword [esp + 0x454], 0xf
mov eax, ebx
jbe 0x41419e
mov eax, dword [esp + 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 2
call fcn.004dbd88
add esp, 4
mov ecx, dword [esp + 0x450]
cmp dword [esp + 0x454], 0xf
jbe 0x4141c7
mov ebx, dword [esp + 0x440]
push eax
push 1
push ecx
push ebx
jmp 0x4141da
lea edx, [esp + 0x440]
push eax
push 1
push ecx
push edx
call fcn.004e9192
add esp, 0x10
push 2
call fcn.004dbd88
add esp, 4
push eax
call fcn.004e86e8
add esp, 4
test byte [section..data], 1
je 0x41423d
call 0x414530
test al, al
je 0x41423d
mov eax, dword [esp + 0x450]
cmp dword [esp + 0x454], 0xf
jbe 0x414221
mov ecx, dword [esp + 0x440]
jmp 0x414228
lea ecx, [esp + 0x440]
push 0
lea edx, [esp + 0x44]
push edx
push eax
push ecx
push dword [0x54d6cc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi], 3
jne 0x414454
mov ecx, dword [0x54fd1c]
test ecx, ecx
je 0x414278
mov eax, dword [esp + 0x450]
cmp dword [esp + 0x454], 0xf
jbe 0x41426a
mov edx, dword [esp + 0x440]
jmp 0x414271
lea edx, [esp + 0x440]
push eax
push edx
call fcn.00435110
cmp dword [esp + 0x454], 0xf
jbe 0x41428b
mov eax, dword [esp + 0x440]
jmp 0x414292
lea eax, [esp + 0x440]
push 0x400
push eax
lea eax, [esp + 0x48]
mov ebx, eax
push eax
call fcn.0041eaa0
add esp, 0xc
push ebx
call fcn.00404440
add esp, 4
mov eax, dword [0x54d6b8]
test eax, eax
je 0x414329
mov eax, dword [0x54d6b8]
cmp eax, 1
ja 0x414321
push 0x54d6b8
call fcn.00413d30
add esp, 4
test al, al
je 0x41431c
mov dword [0x54d6c0], 0
mov dword [0x54d6bc], 0
mov dword [0x54d6c8], 0
mov dword [0x54d6c4], 0
push 0x54d6b8
push 0
push 0x54d6bc
push 0x54d6b8
call fcn.00413df0
add esp, 0x10
mov eax, 0x54d6bc
jmp 0x414321
mov eax, dword [0x54d6b8]
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
jne 0x414333
call fcn.00432690
jmp 0x414454
mov eax, dword [0x54d6b8]
cmp eax, 1
ja 0x41439b
push 0x54d6b8
call fcn.00413d30
add esp, 4
test al, al
je 0x414396
mov dword [0x54d6c0], 0
mov dword [0x54d6bc], 0
mov dword [0x54d6c8], 0
mov dword [0x54d6c4], 0
push 0x54d6b8
push 0
push 0x54d6bc
push 0x54d6b8
call fcn.00413df0
add esp, 0x10
mov eax, 0x54d6bc
jmp 0x41439b
mov eax, dword [0x54d6b8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4143a5
mov ecx, dword [eax + 4]
mov eax, dword [eax]
lea eax, [eax + ecx*4 - 4]
lea ecx, [esp + 0x14]
push eax
call fcn.0040acc0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41444b
cmp dword [esp + 0x454], 0xf
jbe 0x4143d4
mov ecx, dword [esp + 0x440]
jmp 0x4143db
lea ecx, [esp + 0x440]
mov edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
add edx, dword [esp]
mov dword [esp + 4], edx
je 0x4143fd
push edx
call fcn.004eabc0
add esp, 4
jmp 0x4143ff
xor eax, eax
mov ecx, dword [esi + 0xa0]
mov edi, dword [esp + 0xc]
mov ebx, dword [esp]
mov edx, dword [esi + 0xa8]
add edi, ecx
sub ebx, ecx
mov ecx, dword [esi + 0xa4]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 4]
mov dword [esp + 0x3c], ebx
lea ebx, [esp + 0x38]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
push ebx
push edx
push ecx
mov eax, dword [esp + 0x20]
push eax
call dword [eax + 4]
add esp, 0x14
mov edi, dword [esp + 8]
lea ecx, [esp + 0x14]
call fcn.0040aca0
mov eax, dword [esp + 0x454]
cmp eax, 0x10
jb 0x414494
mov ecx, dword [esp + 0x440]
lea ebx, [eax + 1]
cmp ebx, 0x1000
jb 0x41448a
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41452b
add eax, 0x24
mov ecx, edx
mov ebx, eax
push ebx
push ecx
call fcn.004d4589
add esp, 8
mov dword [esp + 0x454], 0xf
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x4fe910
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x50]
mov dword [esi + eax + 4], ecx
mov ecx, edi
mov dword [esi + 0xc], 0x4fe920
call fcn.004163f0
mov dword [esi + 0xc], 0x4fd530
mov edi, dword [esi + 0x40]
lea esi, [esi + 0x58]
test edi, edi
je 0x414506
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4144fd
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4144fd
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push edi
call fcn.004d4584
add esp, 4
mov dword [esi], 0x4fd5a8
push esi
call fcn.004d4e87
add esp, 4
mov ecx, dword [esp + 0x458]
xor ecx, ebp
call fcn.004d45c8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004e40e0
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov eax, dword [0x54c03c]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x54d6cc], 0
jne 0x414918
mov esi, dword [0x54d6ac]
test esi, esi
je 0x414611
test byte [section..data], 1
je 0x414918
cmp dword [esi + 0x14], 8
jb 0x414578
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 3
push 4
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x54d6cc], eax
inc eax
cmp eax, 1
ja 0x414918
lea ebx, [ebp - 0x218]
mov word [ebp - 0x218], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x414916
mov esi, dword [0x54d6ac]
push ebx
call fcn.004eaf34
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x414724
sub esp, 0xc
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
call fcn.0040184a
mov edi, dword [0x54d6ac]
lea eax, [edi + 0x14]
mov esi, edi
mov dword [ebp - 0x220], eax
jmp 0x414752
push 0x18
call fcn.004d4554
add esp, 4
mov esi, eax
lea ebx, [ebp - 0x218]
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], 0
push ebx
call fcn.004eaf34
add esp, 4
mov edi, eax
cmp eax, 7
jbe 0x414671
sub esp, 0xc
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
call fcn.0040184a
jmp 0x414689
mov eax, edi
mov dword [esi + 0x10], edi
add eax, edi
push eax
push ebx
push esi
call fcn.004d9f90
add esp, 0xc
mov word [esi + edi*2], 0
mov edi, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, esi
mov bl, 1
cmp edi, 7
jbe 0x41469a
mov ecx, dword [esi]
test edx, edx
je 0x4146fb
mov ebx, edx
mov dword [ebp - 0x220], edi
add ebx, 0xffffffff
cmovae ebx, edx
lea edi, [ecx + ebx*2]
movzx ebx, word [ecx + ebx*2]
cmp ebx, 0x5c
je 0x4146e7
mov ebx, edx
mov eax, edx
neg ebx
not eax
cmp ebx, eax
cmova eax, ebx
lea ebx, [eax + eax + 2]
nop dword [eax]
test ebx, ebx
je 0x4147bb
movzx eax, word [edi - 2]
add edi, 0xfffffffe
add ebx, 2
cmp eax, 0x5c
jne 0x4146d0
sub edi, ecx
mov bl, 1
cmp edi, 0xfffffffe
jne 0x414702
mov edi, dword [ebp - 0x220]
jmp 0x4147c3
xor edx, edx
jmp 0x4147c3
sar edi, 1
lea eax, [edi + 1]
cmp edx, eax
jb 0x41492f
mov dword [esi + 0x10], eax
mov word [ecx + edi*2 + 2], 0
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
jmp 0x4147c3
mov ecx, ebx
cmp eax, 8
mov ebx, esi
jb 0x41472f
mov ebx, dword [esi]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], edi
mov dword [ebp - 0x220], eax
mov eax, edi
add eax, edi
push eax
push ecx
push ebx
call fcn.004da510
add esp, 0xc
mov word [ebx + edi*2], 0
mov edi, esi
mov edx, dword [esi + 0x14]
mov ebx, edi
cmp edx, 8
jb 0x41475e
mov ebx, dword [esi]
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
movzx ebx, word [ebx + eax*2 - 2]
cmp ebx, 0x5c
jne 0x414775
mov bl, 1
jmp 0x41486e
cmp edx, eax
jne 0x41484e
sub esp, 0x10
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x4fe8f6
mov dword [esp], 1
call fcn.004030d8
mov esi, dword [0x54d6ac]
mov bl, 1
lea ecx, [esi + 0x10]
lea edx, [esi + 0x14]
jmp 0x414869
mov edi, dword [ebp - 0x220]
mov bl, 1
mov eax, edi
sub eax, edx
cmp eax, 9
jae 0x4147f9
sub esp, 0x10
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 0xc], 9
mov dword [esp + 8], str.debug.log
mov dword [esp], 9
call fcn.004030d8
jmp 0x414836
lea eax, [edx + 9]
cmp edi, 7
mov ecx, esi
mov dword [esi + 0x10], eax
jbe 0x414808
mov ecx, dword [esi]
movzx eax, word [0x4fe90a]
movsd xmm0, qword [0x4fe902]
movsd xmm1, qword [str.debug.log]
mov word [ecx + edx*2 + 0x10], ax
movsd qword [ecx + edx*2 + 8], xmm0
movsd qword [ecx + edx*2], xmm1
mov word [ecx + edx*2 + 0x12], 0
mov dword [0x54d6ac], esi
test byte [section..data], 1
jne 0x414570
jmp 0x414918
lea ebx, [eax + 1]
cmp edx, 8
mov dword [ecx], ebx
jb 0x41485a
mov edi, dword [esi]
mov edx, dword [ebp - 0x220]
mov dword [edi + eax*2], 0x5c
mov bl, 1
mov eax, dword [esi + 0x10]
mov edx, dword [edx]
mov edi, edx
sub edi, eax
cmp edi, 9
jae 0x4148a4
sub esp, 0x10
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 0xc], 9
mov dword [esp + 8], str.debug.log
mov dword [esp], 9
call fcn.004030d8
jmp 0x4148de
lea edi, [eax + 9]
cmp edx, 8
mov dword [ecx], edi
jb 0x4148b0
mov esi, dword [esi]
movzx ecx, word [0x4fe90a]
movsd xmm0, qword [0x4fe902]
movsd xmm1, qword [str.debug.log]
mov word [esi + eax*2 + 0x10], cx
movsd qword [esi + eax*2 + 8], xmm0
movsd qword [esi + eax*2], xmm1
mov word [esi + eax*2 + 0x12], 0
mov eax, dword [0x54d6ac]
cmp dword [eax + 0x14], 8
jb 0x4148eb
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 [0x54d6cc], eax
inc eax
cmp eax, 1
ja 0x414918
mov dword [0x54d6cc], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00402f60
int3