Function at 0x409440
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40a43e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebp
lea eax, [esp + 0x70]
push esi
push eax
mov esi, ecx
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.D:_STES2_Data_ConfigInfoSetup.ini
lea ecx, [esp + 0x38]
push 0x40d0d0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov dl, byte [esp + 0x80]
push 0x84
mov byte [esp + 0x44], dl
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [esp + 0x10], eax
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0xfc], ebp
je 0x4094bb
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.00405f60
mov ebp, eax
push ebx
push edi
push 0x160
mov dword [esp + 0x108], 0xffffffff
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
mov ecx, 0x58
xor eax, eax
lea ebx, [esi + 0x1c]
mov dword [esi + 8], edi
rep stosd dword es:[edi], eax
push ebx
push str.THIS_PROGRAM_KIND
push str.SelectSystem
mov ecx, ebp
call fcn.00405fd0
mov edx, dword [esi + 8]
mov ecx, ebp
push edx
push str.LOCAL_ADDRESS
push str.LocalInfo
call fcn.00406020
mov eax, dword [esi + 8]
mov ecx, ebp
add eax, 0x10
push eax
push str.LOCAL_NAME
push str.LocalInfo
call fcn.00406020
lea edi, [esi + 0x14]
mov ecx, ebp
push edi
push str.SVR_SEND_PORT
push str.LocalInfo
call fcn.00405fd0
mov eax, dword [ebx]
cmp eax, 1
mov eax, dword [edi]
jne 0x409553
cmp eax, 0x1388
jl 0x409561
cmp eax, 0x170c
jle 0x409567
jmp 0x409561
cmp eax, 0x1f40
jl 0x409561
cmp eax, 0x2328
jle 0x409567
mov dword [edi], 0
lea ebx, [esi + 0x2c]
mov ecx, ebp
push ebx
push str.CENTER_COMM_KIND
push str.LocalInfo
call fcn.00405fd0
cmp dword [ebx], 1
jne 0x4095cf
lea eax, [esi + 0x38]
xor ecx, ecx
mov edx, eax
push eax
push str.CDMA_TEL_NUMBER
push str.LocalInfo
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, ebp
call fcn.00406020
lea eax, [esi + 0x30]
mov ecx, ebp
push eax
push str.WAIT_CDMA_CONNECT
push str.LocalInfo
call fcn.00405fd0
lea ecx, [esi + 0x34]
push ecx
push str.WAKEUP_CDMA
push str.LocalInfo
mov ecx, ebp
call fcn.00405fd0
lea edx, [esi + 0x50]
mov ecx, ebp
push edx
push str.SINULATION_MODE
push str.LocalInfo
call fcn.00405fd0
lea eax, [esi + 0x10]
mov ecx, ebp
push eax
push str.OPERATION_MODE
push str.OperationInfo
mov dword [esi + 0x4c], 0
call fcn.00405fd0
lea ebx, [esi + 0x18]
mov ecx, ebp
push ebx
push str.VOL_FILE_SEND_SYSTEM
push str.AdditionItem
call fcn.00405fd0
cmp dword [edi], 0
jne 0x409620
mov dword [ebx], 1
lea edi, [esi + 0x20]
mov ecx, ebp
push edi
push str.AUTO_SEND_LOG
push str.AdditionItem
call fcn.00405fd0
cmp dword [edi], 1
jne 0x409675
mov edi, dword [sym.imp.MSVCRT.dll_rand]
mov dword [esi + 0x24], 0xa
call edi
cmp eax, 0xa
jge 0x409653
add dword [esi + 0x24], eax
jmp 0x40965e
cdq
mov ecx, 0x28
idiv ecx
add dword [esi + 0x24], edx
call edi
cmp eax, 0xa
jge 0x40966a
mov dword [esi + 0x28], eax
jmp 0x409675
cdq
mov ecx, 0x32
idiv ecx
mov dword [esi + 0x28], edx
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
push edx
push str.MANAGE_PC_IP
push str.LocalInfo
mov ecx, ebp
call fcn.00406020
mov eax, dword [esi + 8]
lea ecx, [esp + 0x1c]
add eax, 0x74
push eax
push ecx
call fcn.00405f40
mov edx, dword [esi + 8]
add esp, 8
mov byte [edx + 0x50], 1
mov eax, dword [esi + 8]
mov dword [eax + 0x78], 0x2af9
mov ecx, dword [esi + 8]
lea eax, [esi + 0x48]
mov dword [ecx + 0x80], 0
mov edx, dword [esi + 8]
push eax
push str.ENF_CAMERA_CNT
mov dword [edx + 0xa8], 0xffffffff
push str.LocalInfo
mov ecx, ebp
mov dword [esi + 0xc], 1
call fcn.00405fd0
lea eax, [esi + 0x54]
mov ecx, ebp
push eax
push str.TARGET_LANE_1
push str.DigitalCAM_1
call fcn.00405fd0
lea ebx, [esi + 0x5c]
mov ecx, 6
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea edi, [esi + 0x74]
mov ecx, 6
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ecx
push edx
mov dword [esp + 0x18], ecx
push str.LOOP1_CHASUN_1
push str.DigitalCAM_1
mov ecx, ebp
call fcn.00406020
movsx eax, byte [esp + 0x10]
movsx ecx, byte [esp + 0x12]
sub eax, 0x30
sub ecx, 0x30
mov dword [ebx], eax
lea eax, [esp + 0x10]
xor edx, edx
push eax
mov dword [esi + 0x74], ecx
mov dword [esp + 0x14], edx
push str.LOOP1_CHASUN_2
push str.DigitalCAM_1
mov ecx, ebp
mov dword [esp + 0x20], edx
call fcn.00406020
movsx ecx, byte [esp + 0x10]
movsx edx, byte [esp + 0x12]
mov eax, dword [esi + 0x1c]
sub ecx, 0x30
sub edx, 0x30
pop edi
cmp eax, 1
mov dword [esi + 0x60], ecx
mov dword [esi + 0x78], edx
pop ebx
jne 0x4097c1
lea eax, [esp + 8]
mov ecx, ebp
push eax
push str.LOOP1_CHASUN_3
push str.DigitalCAM_1
call fcn.00406020
movsx ecx, byte [esp + 8]
movsx edx, byte [esp + 0xa]
sub ecx, 0x30
sub edx, 0x30
mov dword [esi + 0x64], ecx
mov dword [esi + 0x7c], edx
cmp dword [esi + 0x48], 2
jne 0x409893
lea eax, [esi + 0x58]
mov ecx, ebp
push eax
push str.TARGET_LANE_2
push str.DigitalCAM_2
call fcn.00405fd0
xor ecx, ecx
lea edx, [esp + 8]
mov dword [esp + 8], ecx
push edx
mov dword [esp + 0x10], ecx
push str.LOOP2_CHASUN_1
push str.DigitalCAM_2
mov ecx, ebp
call fcn.00406020
movsx eax, byte [esp + 8]
movsx ecx, byte [esp + 0xa]
sub eax, 0x30
sub ecx, 0x30
mov dword [esi + 0x68], eax
lea eax, [esp + 8]
xor edx, edx
push eax
mov dword [esi + 0x80], ecx
mov dword [esp + 0xc], edx
push str.LOOP2_CHASUN_2
push str.DigitalCAM_2
mov ecx, ebp
mov dword [esp + 0x18], edx
call fcn.00406020
movsx ecx, byte [esp + 8]
movsx edx, byte [esp + 0xa]
mov eax, dword [esi + 0x1c]
sub ecx, 0x30
sub edx, 0x30
cmp eax, 1
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x84], edx
jne 0x409893
lea ecx, [esp + 8]
xor eax, eax
push ecx
mov dword [esp + 0xc], eax
push str.LOOP2_CHASUN_3
push str.DigitalCAM_2
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.00406020
movsx edx, byte [esp + 8]
movsx eax, byte [esp + 0xa]
sub edx, 0x30
sub eax, 0x30
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], eax
test ebp, ebp
je 0x4098a0
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov ecx, dword [esp + 0xf4]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xf8
ret