Function at 0x43b730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d5c0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x4c], esi
mov ebx, ecx
test ebx, ebx
je 0x43ba89
movzx ecx, word [ebx]
xor eax, eax
cmp ax, cx
je 0x43ba89
mov edi, ebx
lea edx, [edi + 2]
lea ecx, [ecx]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x43b780
sub edi, edx
mov eax, 0x5c
sar edi, 1
lea edx, [eax - 0x2d]
cmp edi, 2
jb 0x43b7af
cmp ax, cx
jne 0x43b8bf
cmp ax, word [ebx + 2]
je 0x43b8d2
mov ecx, 0x3a
cmp edi, 3
jb 0x43b7df
cmp cx, word [ebx + 2]
jne 0x43b7df
movzx eax, word [ebx + 4]
mov ecx, 0x5c
cmp cx, ax
je 0x43b8d2
cmp dx, ax
je 0x43b8d2
mov ecx, 0x3a
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
cmp edi, 2
jb 0x43b8e9
cmp cx, word [ebx + 2]
jne 0x43b8e9
mov ax, word [ebx]
lea ecx, [ebp - 0x44]
mov word [ebp - 0x18], ax
xor eax, eax
mov word [ebp - 0x12], ax
mov eax, 0x104
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
push 0x104
mov dword [ebp - 0x16], 0x31003a
mov dword [ebp - 0x34], 0
call fcn.0043e1a0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
push 0
sub ecx, eax
push eax
sar ecx, 1
lea eax, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov ecx, eax
cmp ecx, 0x104
jbe 0x43b89c
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], ecx
push eax
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
call fcn.0043e1a0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
push 0
sub ecx, eax
push eax
sar ecx, 1
lea eax, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov ecx, eax
mov eax, dword [ebp - 0x38]
cmp ecx, 2
jb 0x43b929
cmp ecx, eax
jae 0x43b929
mov eax, dword [ebp - 0x44]
xor edx, edx
mov dword [ebp - 0x48], 2
mov word [eax + ecx*2 - 4], dx
jmp 0x43b926
cmp dx, cx
jne 0x43b7af
cmp dx, word [ebx + 2]
jne 0x43b7af
push ebx
call fcn.0041bea0
add esp, 4
mov ecx, esi
push eax
push ebx
call fcn.0041bc10
jmp 0x43ba89
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x43ba28
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0043e1a0
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
sub ecx, eax
sar ecx, 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
mov eax, dword [ebp - 0x38]
test ecx, ecx
je 0x43ba28
cmp ecx, eax
ja 0x43ba28
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
sub eax, ecx
test eax, 0xfffffffe
je 0x43ba28
xor eax, eax
cmp ax, word [ecx]
je 0x43ba28
push ecx
lea ecx, [ebp - 0x30]
call fcn.0041bac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.0041bbd0
dec eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.0041bb40
mov ecx, eax
mov edx, ecx
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x38], eax
cmp eax, 8
jb 0x43b989
mov edx, dword [ecx]
mov eax, dword [ebp - 0x34]
movzx eax, word [edx + eax*2]
mov edx, 0x5c
cmp dx, ax
je 0x43b9fc
mov edx, 0x2f
cmp dx, ax
je 0x43b9fc
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x34], 0x5c
cmp edx, dword [ebp - 0x38]
jae 0x43b9ea
cmp dword [ebp - 0x38], 8
lea eax, [edx + 1]
mov dword [ecx + 0x10], eax
jb 0x43b9c1
mov ecx, dword [ecx]
lea eax, [ebp - 0x34]
lea esi, [ecx + edx*2]
push eax
push esi
call fcn.0041be10
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
lea eax, [esi + 2]
push eax
call fcn.0041be10
mov esi, dword [ebp - 0x4c]
add esp, 0x10
jmp 0x43b9fc
push 0x5c
mov byte [ebp - 0x4c], 0
push dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00433e00
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00433d40
cmp dword [ebp - 0x48], edi
jae 0x43ba1a
mov ecx, dword [ebp - 0x48]
lea eax, [ebx + ecx*2]
mov ecx, esi
push eax
call fcn.00435300
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0041ba60
jmp 0x43ba3a
push ebx
call fcn.0041bea0
add esp, 4
mov ecx, esi
push eax
push ebx
call fcn.0041bc10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x43ba89
mov ecx, dword [ebp - 0x3c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x43ba6a
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43baa5
push ecx
push edx
call fcn.00539070
add esp, 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005395e6
mov esp, ebp
pop ebp
ret
call fcn.00555b08
int3