Function at 0x43b540
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455513
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x198], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea eax, [ebp - 0x11b]
push eax
call fcn.004401c0
add esp, 0xc
lea ecx, [ebp - 0x11c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [ebp + 8]
sub edx, 0x10
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x13c]
xor ecx, ecx
cmp dword [eax + 0xc], 1
setg cl
movzx edx, cl
test edx, edx
je 0x43b5db
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp + 8]
call fcn.00407de0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 8]
push eax
push str.InitComx3_strcomx3_s
call fcn.00407f90
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x140]
push edx
mov ecx, dword [ebp - 0x198]
add ecx, 0x68
mov eax, dword [ebp - 0x198]
mov edx, dword [eax + 0x68]
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x43b662
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.Load_Failed.Comx3Path_s_Error__d
call fcn.00407f90
add esp, 0xc
mov dword [ebp - 0x12c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404a90
mov eax, dword [ebp - 0x12c]
jmp 0x43b9a9
mov dword [ebp - 0x120], str.rssetup
mov edx, dword [ebp - 0x198]
cmp dword [edx + 0x170], 0
je 0x43b7a5
push 0x567850
lea ecx, [ebp - 0x124]
call fcn.00404a40
mov byte [ebp - 4], 1
mov dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x198]
cmp dword [eax + 0xc8], 0
je 0x43b6c4
lea ecx, [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x198]
add ecx, 0xa0
call fcn.0040aa10
push 0x104
push 0x104
lea ecx, [ebp - 0x124]
call fcn.0040b880
push eax
call fcn.0043b9d0
add esp, 8
mov edx, dword [ebp - 0x198]
cmp dword [edx + 0xc8], 0
je 0x43b709
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x198]
add ecx, 0xa0
call fcn.0040abb0
push 0xffffffffffffffff
lea ecx, [ebp - 0x124]
call fcn.0040b910
push 3
lea ecx, [ebp - 0x124]
call fcn.004042b0
push eax
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x198]
mov eax, dword [edx + 0x78]
call eax
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x198]
add ecx, 0x58
call fcn.0043e480
mov ecx, dword [ebp - 0x198]
mov edx, dword [ecx + 0x58]
mov dword [ebp - 0x15c], edx
cmp dword [ebp - 0x15c], 0
jne 0x43b77d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x124]
push eax
push str.Load_update_Comx3_WorkParh_s_Error__d
call fcn.00407f90
add esp, 0xc
jmp 0x43b791
mov ecx, dword [ebp - 0x124]
push ecx
push str.Load_update_Comx3_WorkParh_s
call fcn.00407f90
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.00404a90
jmp 0x43b852
mov edx, dword [ebp + 8]
sub edx, 0x10
mov dword [ebp - 0x164], edx
mov eax, dword [ebp - 0x164]
xor ecx, ecx
cmp dword [eax + 0xc], 1
setg cl
movzx edx, cl
test edx, edx
je 0x43b7d9
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp + 8]
call fcn.00407de0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x168], edx
push 3
mov eax, dword [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x198]
mov eax, dword [edx + 0x78]
call eax
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x198]
add ecx, 0x58
call fcn.0043e480
mov ecx, dword [ebp - 0x198]
mov edx, dword [ecx + 0x58]
mov dword [ebp - 0x170], edx
cmp dword [ebp - 0x170], 0
jne 0x43b841
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str.Load__install_Comx3_WorkParh_s_Error__d
call fcn.00407f90
add esp, 0xc
jmp 0x43b852
mov ecx, dword [ebp + 8]
push ecx
push str.Load_install_Comx3_WorkParh_s
call fcn.00407f90
add esp, 8
mov edx, dword [ebp - 0x198]
mov eax, dword [edx + 0x58]
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
jne 0x43b89f
mov ecx, dword [ebp + 8]
push ecx
push str.RS_InitializeCallCenter_Failed.Comx3Path_s
call fcn.00407f90
add esp, 8
mov dword [ebp - 0x130], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404a90
mov eax, dword [ebp - 0x130]
jmp 0x43b9a9
cmp dword [ebp - 0x198], 0
je 0x43b8b9
mov edx, dword [ebp - 0x198]
add edx, 0x48
mov dword [ebp - 0x19c], edx
jmp 0x43b8c3
mov dword [ebp - 0x19c], 0
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x198]
mov edx, dword [ecx + 0x58]
mov dword [ebp - 0x1a0], edx
push 0
mov eax, dword [ebp - 0x19c]
push eax
push 1
push 0x1452
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1a0]
mov eax, dword [edx + 0x28]
call eax
push eax
mov ecx, dword [ebp - 0x198]
add ecx, 0x60
call fcn.0043e500
mov ecx, dword [ebp - 0x198]
mov edx, dword [ecx + 0x60]
mov dword [ebp - 0x184], edx
cmp dword [ebp - 0x184], 0
jne 0x43b956
push str.Logon_Failed.
call fcn.00407f90
add esp, 4
mov dword [ebp - 0x134], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404a90
mov eax, dword [ebp - 0x134]
jmp 0x43b9a9
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.0040b910
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.InitComx3_OK
call fcn.00407f90
add esp, 4
mov ecx, dword [ebp - 0x198]
mov dword [ecx + 0x90], 1
mov dword [ebp - 0x138], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404a90
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret 4