Function at 0x40e1d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 1], 0
push esi
lea esi, [ebp - 0x278]
mov dword [ebp - 0x20], esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
cmp eax, ebx
je 0x40e202
mov esi, eax
mov dword [ebp - 0x20], esi
jmp 0x40e212
cmp ecx, 0x12c
jbe 0x40e212
mov edi, 0x12c
mov dword [ebp - 0x10], edi
push 0
push 0
lea eax, [ebp - 3]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call fcn.0041a530
add esp, 0x14
test al, al
je 0x40e4ca
mov eax, dword [ebp - 8]
cmp eax, edi
jae 0x40e4ca
test eax, eax
je 0x40e262
cmp byte [ebp - 3], 0
je 0x40e262
push edi
push esi
push ebx
call fcn.0041a2c0
add esp, 0xc
test al, al
je 0x40e4ca
pop edi
mov bl, 1
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e286
push edi
push esi
push eax
call fcn.0041a2c0
add esp, 0xc
test al, al
jne 0x40e29e
xor eax, eax
pop edi
mov word [esi], ax
mov bl, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x40e29e
pop edi
mov word [esi], ax
mov bl, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [esi], 0
je 0x40e4ca
push 0
push 0
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0041a530
add esp, 0x14
test al, al
je 0x40e4ca
mov eax, dword [ebp - 0xc]
cmp eax, edi
jae 0x40e4ca
cmp byte [ebp - 3], 0
jne 0x40e3cc
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x40e3c0
cmp eax, ebx
jne 0x40e35c
push dword [ebp + 0xc]
xor edi, edi
call fcn.00406d40
push esi
mov ebx, eax
call fcn.00406d40
mov esi, eax
add esp, 8
mov eax, dword [ebp - 0x14]
lea ecx, [ebx + eax*2]
lea eax, [esi + eax*2]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
cmp ebx, ecx
jne 0x40e31a
xor ecx, ecx
jmp 0x40e320
movzx ecx, word [ebx]
add ebx, 2
cmp esi, eax
jne 0x40e328
xor edx, edx
jmp 0x40e32e
movzx edx, word [esi]
add esi, 2
cmp cx, dx
je 0x40e339
sbb edi, edi
and edi, 0xfffffffe
inc edi
xor eax, eax
cmp cx, dx
setne al
dec eax
and eax, ecx
mov ecx, dword [ebp - 0x14]
test ax, ax
mov eax, dword [ebp - 0x18]
jne 0x40e312
mov esi, dword [ebp - 0x20]
test edi, edi
mov edi, dword [ebp - 0x10]
je 0x40e3bd
mov ebx, dword [ebp - 8]
cmp ebx, 2
jne 0x40e4ac
mov eax, dword [ebp + 0xc]
cmp word [eax + 2], 0x3a
jne 0x40e4ac
mov ebx, eax
movzx eax, word [ebx]
push eax
call fcn.004427e0
add esp, 4
test eax, eax
je 0x40e4a9
mov ax, word [ebx]
mov word [ebp - 0x1c], ax
xor eax, eax
push eax
push esi
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x1c]
push edi
push eax
mov dword [ebp - 0x1a], 0x2e003a
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
setne byte [ebp - 2]
test eax, eax
je 0x40e4a9
mov eax, dword [ebp - 0xc]
jmp 0x40e3c3
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
cmp byte [ebp - 2], 0
jne 0x40e3d2
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [edi - 1]
xor ecx, ecx
lea eax, [esi + eax*2]
mov word [eax], cx
push edi
push esi
mov dword [ebp + 0xc], eax
call fcn.0040cb70
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40e400
movzx eax, word [esi + ecx*2 - 2]
cmp eax, 0x5c
je 0x40e3ff
cmp eax, 0x2f
jne 0x40e400
dec ecx
mov eax, 0x5c
sub edi, ecx
mov word [esi + ecx*2], ax
dec edi
xor eax, eax
cmp byte [ebp - 3], al
push edi
setne al
inc ecx
add eax, dword [ebp - 8]
lea eax, [ebx + eax*2]
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00409a90
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp word [eax], 0
jne 0x40e4ca
mov ebx, dword [ebp + 0x10]
xor edi, edi
cmp esi, ebx
jne 0x40e47d
push dword [ebp + 0x14]
push ebx
call fcn.0040cb70
add esp, 8
lea esi, [ebp - 0x278]
cmp eax, 0x12c
jb 0x40e470
lea eax, [eax*2 + 2]
push eax
call fcn.0042c6bd
mov esi, eax
add esp, 4
mov edi, esi
test esi, esi
je 0x40e4ca
push dword [ebp + 0x14]
push ebx
push esi
call fcn.00409a90
add esp, 0xc
push dword [ebp + 0x14]
push ebx
push esi
call fcn.0041a2c0
add esp, 0xc
mov bl, 1
test al, al
jne 0x40e493
mov bl, byte [ebp - 1]
test edi, edi
je 0x40e4cd
push edi
call fcn.0042c6a2
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0xc]
push esi
call fcn.00422560
mov eax, ebx
mov byte [ebp - 2], 0
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x40e3c9
mov bl, byte [ebp - 1]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret