Function at 0x43a3c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x6c
mov eax, 1
mov dword [0x57119c], eax
mov dword [0x56c168], eax
push ebx
push esi
mov ebx, dword [esp + 0x78]
push edi
push ebp
cmp ebx, 2
jge 0x43a3e8
push eax
call fcn.0043ab30
add esp, 4
mov esi, 1
mov ebp, dword [esp + 0x84]
mov dword [0x57119c], esi
mov dword [0x56c168], esi
mov eax, dword [ebp + ebx*4 - 4]
cmp byte [eax], 0x2d
jne 0x43a478
mov edi, dword [sym.imp.MSVCR80.dll_tolower]
mov eax, dword [ebp + ebx*4 - 4]
movsx ecx, byte [eax + 1]
push ecx
call edi
mov byte [esp + 0x14], al
add esp, 4
cmp al, 0x75
je 0x43a478
mov eax, dword [ebp + ebx*4 - 4]
cmp byte [eax + 2], 0
je 0x43a439
push 0x29
call fcn.0043ab30
add esp, 4
xor eax, eax
mov al, byte [esp + 0x10]
cmp eax, 0x69
je 0x43a460
cmp eax, 0x6d
je 0x43a468
push 0x29
call fcn.0043ab30
add esp, 4
mov eax, 0x29
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
mov dword [0x56c168], esi
jmp 0x43a46e
mov dword [0x57119c], esi
mov eax, dword [ebp + ebx*4 - 8]
dec ebx
cmp byte [eax], 0x2d
je 0x43a40f
mov eax, dword [ebp + 4]
cmp byte [eax + 1], 0x24
mov dword [0x56a8b0], 0
je 0x43a495
mov dword [0x56a8b0], 1
push 0x400
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x43a4df
push edi
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsx eax, byte [edi]
push eax
call dword [sym.imp.MSVCR80.dll_toupper]
add esp, 4
sub eax, 0x40
mov dword [esp + 0x10], eax
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x43a4e7
mov dword [esp + 0x10], 3
cmp dword [0x56a8b0], 0
je 0x43a652
cmp ebx, 3
jl 0x43a63b
cmp ebx, 4
jg 0x43a63b
mov edi, dword [ebp + 4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [0x56a8a4]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 2
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.0043a980
add esp, 8
test eax, eax
jne 0x43a95c
mov eax, dword [ebp + 4]
cmp byte [eax + 1], 0x3a
je 0x43a57a
cmp byte [eax], 0x2f
je 0x43a57a
mov eax, dword [esp + 0x10]
mov ecx, dword [0x56a8a8]
dec eax
push ecx
mov dword [0x56beb0], eax
mov edx, dword [ebp + 4]
push edx
call fcn.0043aa50
add esp, 8
test eax, eax
je 0x43a60c
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
push 1
push ebp
call fcn.0043a970
add esp, 8
test eax, eax
jne 0x43a95c
mov eax, dword [ebp + 4]
mov cl, byte [eax + 2]
test cl, cl
jne 0x43a5ae
push 2
call fcn.0043ab30
add esp, 4
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
mov edx, 2
mov esi, 1
test cl, cl
je 0x43a5cb
cmp byte [eax + edx], 0x2f
jne 0x43a5c4
mov esi, edx
inc edx
cmp byte [eax + edx], 0
jne 0x43a5bc
lea edi, [eax + esi + 1]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x56a8a8]
lea eax, [esp + 0x14]
push ecx
push eax
call fcn.0043aa50
add esp, 8
test eax, eax
jne 0x43a95c
cmp ebx, 4
jne 0x43a62c
push 3
push ebp
call fcn.0043a9d0
add esp, 8
test eax, eax
je 0x43a936
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
mov dword [0x56c0fc], 0
jmp 0x43a936
push 1
call fcn.0043ab30
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
cmp ebx, 4
jle 0x43a66e
push 1
call fcn.0043ab30
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
mov edi, dword [ebp + 4]
mov ecx, 0xffffffff
add edi, 2
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 1
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.0043a980
add esp, 8
test eax, eax
jne 0x43a95c
mov eax, dword [0x56a8a8]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0043aa50
add esp, 8
test eax, eax
jne 0x43a95c
cmp ebx, 2
jne 0x43a708
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [0x56a8a4]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [0x56c0fc], 0
mov eax, dword [esp + 0x10]
dec eax
mov dword [0x56beb0], eax
jmp 0x43a936
mov eax, dword [ebp + 8]
cmp ebx, 3
jne 0x43a7cf
cmp byte [eax + 1], 0x3a
je 0x43a76b
cmp byte [eax], 0x2f
je 0x43a76b
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x14]
dec eax
mov ecx, 0xffffffff
mov dword [0x56beb0], eax
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [0x56a8a4]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 2
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.0043a9d0
add esp, 8
test eax, eax
je 0x43a936
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
push 2
push ebp
call fcn.0043a970
add esp, 8
test eax, eax
jne 0x43a95c
xor ecx, ecx
mov dword [0x56c0fc], ecx
mov eax, dword [ebp + 8]
cmp byte [eax], cl
je 0x43a7a6
mov eax, dword [ebp + 8]
mov ebx, dword [0x56a8a4]
mov dl, byte [eax + ecx]
mov byte [ebx + ecx], dl
inc ecx
mov eax, dword [ebp + 8]
cmp byte [eax + ecx], 0
jne 0x43a78d
mov eax, dword [0x56a8a4]
inc ecx
xor edx, edx
mov byte [eax + ecx - 1], 0x2f
xor eax, eax
mov bl, byte [esp + eax + 0x14]
mov esi, dword [0x56a8a4]
mov byte [esi + ecx], bl
inc ecx
inc eax
cmp byte [esp + eax + 0x13], dl
jne 0x43a7b5
jmp 0x43a936
cmp byte [eax], 0x2d
jne 0x43a88d
push 2
push ebp
call fcn.0043a9d0
add esp, 8
test eax, eax
jne 0x43a95c
mov eax, dword [ebp + 0xc]
cmp byte [eax + 1], 0x3a
je 0x43a82f
cmp byte [eax], 0x2f
je 0x43a82f
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x14]
dec eax
mov ecx, 0xffffffff
mov dword [0x56beb0], eax
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [0x56a8a4]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x43a936
push 3
push ebp
call fcn.0043a970
add esp, 8
test eax, eax
jne 0x43a95c
xor ecx, ecx
mov eax, dword [ebp + 0xc]
cmp byte [eax], cl
je 0x43a864
mov eax, dword [ebp + 0xc]
mov ebx, dword [0x56a8a4]
mov dl, byte [eax + ecx]
mov byte [ebx + ecx], dl
inc ecx
mov eax, dword [ebp + 0xc]
cmp byte [eax + ecx], 0
jne 0x43a84b
mov eax, dword [0x56a8a4]
inc ecx
xor edx, edx
mov byte [eax + ecx - 1], 0x2f
xor eax, eax
mov bl, byte [esp + eax + 0x14]
mov esi, dword [0x56a8a4]
mov byte [esi + ecx], bl
inc ecx
inc eax
cmp byte [esp + eax + 0x13], dl
jne 0x43a873
jmp 0x43a936
push 3
push ebp
call fcn.0043a9d0
add esp, 8
test eax, eax
jne 0x43a95c
mov eax, dword [ebp + 8]
cmp byte [eax + 1], 0x3a
je 0x43a8e1
cmp byte [eax], 0x2f
je 0x43a8e1
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x14]
dec eax
mov ecx, 0xffffffff
mov dword [0x56beb0], eax
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [0x56a8a4]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x43a936
push 2
push ebp
call fcn.0043a970
add esp, 8
test eax, eax
jne 0x43a95c
xor ecx, ecx
mov eax, dword [ebp + 8]
cmp byte [eax], cl
je 0x43a912
mov eax, dword [ebp + 8]
mov ebx, dword [0x56a8a4]
mov dl, byte [eax + ecx]
mov byte [ebx + ecx], dl
inc ecx
mov eax, dword [ebp + 8]
cmp byte [eax + ecx], 0
jne 0x43a8f9
mov eax, dword [0x56a8a4]
inc ecx
xor edx, edx
mov byte [eax + ecx - 1], 0x2f
xor eax, eax
mov bl, byte [esp + eax + 0x14]
mov esi, dword [0x56a8a4]
mov byte [esi + ecx], bl
inc ecx
inc eax
cmp byte [esp + eax + 0x13], dl
jne 0x43a921
mov eax, dword [0x56beb0]
cmp dword [0x5711a4], eax
jne 0x43a95a
push 0x1f
call fcn.0043ab30
add esp, 4
mov eax, 0x1f
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret