Function at 0x427710
Capabilities:
Contain obfuscated stackstrings
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c21a
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x5e2500]
xor eax, ebp
mov dword [ebp - 0x64], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b8], ecx
push str.CreateExtractionLogFile
lea ecx, [ebp - 0x34]
call fcn.00404670
mov dword [ebp - 4], 0
push str.Creating_Extraction_Log_File
lea ecx, [ebp - 0x34]
call fcn.004018f0
push eax
push 8
push 0x5e3e78
call fcn.0042b490
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.00401fd0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2b8]
add ecx, 0xa0
call fcn.004018f0
push eax
push 0x400
push 0x400
lea ecx, [ebp - 0x14]
call fcn.004025f0
push eax
push 0x587b88
push str.ExtractLogFileName
push str.LogFiles
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00401cf0
push str._ALLUSERSPROFILE_
lea ecx, [ebp - 0x38]
call fcn.00404670
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00401fd0
mov byte [ebp - 4], 3
mov ecx, 0x5e3e60
call fcn.00433d90
cmp eax, 6
jge 0x427831
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push 0x587c20
lea ecx, [ebp - 0x34]
call fcn.004018f0
push eax
push 8
push 0x5e3e78
call fcn.0042b490
add esp, 0x18
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x38]
push eax
push str._sApplication_DataSiemensAutomationLogfiles_s
lea ecx, [ebp - 0x30]
push ecx
call fcn.00403430
add esp, 0x10
jmp 0x42786f
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 0x587cf0
lea ecx, [ebp - 0x34]
call fcn.004018f0
push eax
push 8
push 0x5e3e78
call fcn.0042b490
add esp, 0x18
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push str._sSiemensAutomationLogfiles_s
lea eax, [ebp - 0x30]
push eax
call fcn.00403430
add esp, 0x10
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00403d00
cmp dword [ebp - 0x10], 0
jbe 0x4278e0
push ecx
mov ecx, esp
mov dword [ebp - 0x298], esp
lea edx, [ebp - 0x14]
push edx
call fcn.004025c0
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x29c]
push eax
mov ecx, 0x5e3e60
call fcn.0042f630
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c4], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2c4]
push edx
lea ecx, [ebp - 0x14]
call fcn.00403d00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x29c]
call fcn.00402000
jmp 0x427906
mov ecx, dword [ebp + 8]
call fcn.00401f20
movzx eax, al
test eax, eax
jne 0x427906
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push str._s.log
lea eax, [ebp - 0x14]
push eax
call fcn.00403430
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00462491
mov byte [ebp - 4], 5
push 0
push 2
lea ecx, [ebp - 0x14]
call fcn.004018f0
push eax
lea ecx, [ebp - 0x2c]
call fcn.004629c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x427938
lea ecx, [ebp - 0x2c]
call fcn.0046242c
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x5e3e60
call fcn.0042dc70
test eax, eax
je 0x427970
cmp dword [ebp - 0x18], 0
jne 0x427970
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x2a0]
push eax
mov ecx, 0x5e3e60
call fcn.00435830
lea ecx, [ebp - 0x2a0]
call fcn.00402000
mov ecx, dword [ebp - 0x14]
push ecx
push str.Extraction_Log_File_:__s
lea ecx, [ebp - 0x34]
call fcn.004018f0
push eax
push 8
push 0x5e3e78
call fcn.0042b490
add esp, 0x14
push str.___________End___________
push 0x5e3e78
call fcn.0042bca0
add esp, 8
lea edx, [ebp - 0x14]
push edx
mov ecx, 0x5e3e60
call fcn.0042dc70
test eax, eax
je 0x427bb6
lea ecx, [ebp - 0x294]
call fcn.00401a60
lea ecx, [ebp - 0x40]
call fcn.00401820
push 0
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x14]
call fcn.004018f0
push eax
call fcn.00454c09
test eax, eax
je 0x4279f9
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004025c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
call fcn.00401fd0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.00401fd0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
call fcn.00401fd0
mov byte [ebp - 4], 9
push str._H__M__S
lea ecx, [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0042b350
mov dword [ebp - 0x2c8], eax
mov edx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x50]
call fcn.00403d00
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2a4]
call fcn.00402000
push str._d_b_Y
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0042b350
mov dword [ebp - 0x2d0], eax
mov edx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2d4], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x58]
call fcn.00403d00
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2a8]
call fcn.00402000
push 2
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x60]
push edx
mov ecx, 0x5e3e60
call fcn.0042f800
mov byte [ebp - 4], 0xc
push 1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, 0x5e3e60
call fcn.0042f800
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x5e3e60
call fcn.00433be0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov ecx, 0x5e3e60
call fcn.00433b00
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
push str._s_s__s__s._s
lea edx, [ebp - 0x5c]
push edx
call fcn.00403430
add esp, 0x1c
lea ecx, [ebp - 0x5c]
call fcn.004018f0
push eax
lea ecx, [ebp - 0x14]
call fcn.004018f0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x4c]
call fcn.00402000
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x54]
call fcn.00402000
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x44]
call fcn.00402000
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x60]
call fcn.00402000
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
call fcn.00402000
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.00402000
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
call fcn.00402000
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00402000
push ecx
mov ecx, esp
mov dword [ebp - 0x2ac], esp
lea eax, [ebp - 0x14]
push eax
call fcn.004025c0
mov dword [ebp - 0x2d8], eax
mov ecx, 0x5e3e60
call fcn.004315d0
xor ecx, ecx
cmp dword [ebp + 0xc], 0
setne cl
lea ecx, [ecx + ecx + 9]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004018f0
push eax
mov ecx, 0x5e3e78
call fcn.0042be90
mov ecx, 0x5e3e78
call fcn.0042bf10
push 0xb
lea edx, [ebp - 0x2b0]
push edx
mov ecx, 0x5e3e78
call fcn.0045529c
mov dword [ebp - 0x2dc], eax
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x2e0], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x2e0]
call fcn.004018f0
push eax
mov ecx, 0x5e3e44
call fcn.0042be90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2b0]
call fcn.00402000
mov ecx, 0x5e3e78
call fcn.0042c3f0
lea ecx, [ebp - 0x2b4]
push ecx
mov ecx, dword [ebp - 0x2b8]
call fcn.00427d20
mov dword [ebp - 0x2e4], eax
mov edx, dword [ebp - 0x2e4]
mov dword [ebp - 0x2e8], edx
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x2e8]
mov ecx, dword [eax]
push ecx
push str.Master_Log_File_:__s
lea ecx, [ebp - 0x34]
call fcn.004018f0
push eax
push 8
push 0x5e3e78
call fcn.0042b490
add esp, 0x14
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2b4]
call fcn.00402000
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004625c1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00402000
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00402000
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x64]
xor ecx, ebp
call fcn.0054dc83
mov esp, ebp
pop ebp
ret 8