Function at 0x407c50
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457c88
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x478990]
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
push str.ADSSetAllPath
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
call fcn.00406740
mov dword [ebp - 4], 0
call fcn.0041c8d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x407cb2
push 0x80004005
call fcn.00406820
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 1
call fcn.0041c8d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x407cdf
push 0x80004005
call fcn.00406820
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 2
call fcn.0041c8d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x407d0c
push 0x80004005
call fcn.00406820
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 3
call fcn.0041c8d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x407d39
push 0x80004005
call fcn.00406820
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov dword [ebp - 0x54], eax
add eax, 0x10
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
call fcn.0041d199
push ecx
mov ecx, esp
push str.afterreboot
mov byte [ebp - 4], 5
mov byte [ebp - 0x41], 0
call fcn.00406740
mov ecx, 0x47d0e8
call fcn.00418940
test al, al
je 0x407db6
push str._AfterReboot_mode_detected._Resources_will_be_read_from_root_directory
push dword [ebp - 0x38]
mov byte [ebp - 0x41], 1
push 8
push 0x47d0b4
call fcn.00417de0
add esp, 0x10
push str.Start_Initialize_common_pathes...
push dword [ebp - 0x38]
push 8
push 0x47d0b4
call fcn.00417de0
mov edx, dword [0x47d094]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
add esp, 0x10
or eax, ecx
jge 0x407dfc
push 0x104
mov ecx, 0x47d094
call fcn.00406510
mov edx, dword [0x47d094]
cmp dword [edx - 8], 0x104
jge 0x407e0f
push 0x80070057
call fcn.00406820
mov dword [edx - 0xc], 0x104
mov eax, dword [0x47d094]
push edx
xor ecx, ecx
push 0x104
mov word [eax + 0x208], cx
call dword [0x47d004]
cmp eax, 0x104
jb 0x407e9b
lea ecx, [eax + 2]
mov dword [ebp - 0x50], ecx
test ecx, ecx
jns 0x407e4b
push 0x80070057
call fcn.00406820
mov eax, dword [0x47d094]
mov dword [ebp - 0x40], eax
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, ecx
or eax, edx
jge 0x407e7a
push ecx
mov ecx, 0x47d094
call fcn.00406510
mov edx, dword [0x47d094]
mov ecx, dword [ebp - 0x50]
jmp 0x407e7d
mov edx, dword [ebp - 0x40]
cmp ecx, dword [edx - 8]
jg 0x407e05
mov dword [edx - 0xc], ecx
mov eax, dword [0x47d094]
push edx
xor ebx, ebx
push ecx
mov word [eax + ecx*2], bx
call dword [0x47d004]
mov ebx, dword [ebp - 0x4c]
mov eax, dword [0x47d094]
push dword [eax - 8]
push eax
call fcn.0043ea2f
mov edx, eax
add esp, 8
test edx, edx
js 0x407e05
mov ecx, dword [0x47d094]
cmp edx, dword [ecx - 8]
jg 0x407e05
mov dword [ecx - 0xc], edx
mov eax, dword [0x47d094]
xor ecx, ecx
mov word [eax + edx*2], cx
push dword [0x47d094]
push str._Temp_path:__s
push dword [ebp - 0x38]
push 8
push 0x47d0b4
call fcn.00417de0
mov eax, dword [0x47d0a0]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x400
add esp, 0x14
or ecx, edx
jge 0x407f1e
push 0x400
mov ecx, 0x47d0a0
call fcn.00406510
mov eax, dword [0x47d0a0]
push 0x400
push eax
push 0
call dword [0x47d00c]
push eax
call dword [0x47d010]
mov ecx, dword [0x47d0a0]
mov dword [ebp - 0x50], eax
push dword [ecx - 8]
push ecx
call fcn.0043ea2f
mov edx, eax
add esp, 8
test edx, edx
js 0x407e05
mov ecx, dword [0x47d0a0]
cmp edx, dword [ecx - 8]
jg 0x407e05
mov dword [ecx - 0xc], edx
mov eax, dword [0x47d0a0]
xor ecx, ecx
mov word [eax + edx*2], cx
push dword [0x47d0a0]
push str._Starter_path:__s
push dword [ebp - 0x38]
push 8
push 0x47d0b4
call fcn.00417de0
push 0x5c
push dword [0x47d0a0]
call fcn.0043f3ff
add esp, 0x1c
test eax, eax
jne 0x407fa2
or eax, 0xffffffff
jmp 0x407faa
sub eax, dword [0x47d0a0]
sar eax, 1
inc eax
push eax
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x47d0a0
call fcn.00405610
mov byte [ebp - 4], 6
mov edx, dword [eax]
lea ecx, [edi - 0x10]
lea eax, [edx - 0x10]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], ecx
cmp eax, ecx
je 0x408020
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x408011
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x408011
push dword [ebp - 0x40]
call fcn.00406100
add esp, 4
mov dword [ebp - 0x40], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x408009
mov edi, dword [ebp - 0x48]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x40]
lea edi, [eax + 0x10]
mov dword [ebp - 0x34], edi
jmp 0x408020
push dword [edx - 0xc]
lea ecx, [ebp - 0x34]
push edx
call fcn.004065f0
mov edi, dword [ebp - 0x34]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408041
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x47d098]
add ecx, 0xfffffff0
lea edx, [edi - 0x10]
mov dword [ebp - 0x40], ecx
cmp edx, ecx
je 0x4080a7
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x30], eax
jl 0x408099
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x408099
push edx
call fcn.00406100
mov edx, dword [ebp - 0x30]
add esp, 4
mov dword [ebp - 0x48], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40808f
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x48]
add eax, 0x10
mov dword [0x47d098], eax
jmp 0x4080a7
push dword [edi - 0xc]
mov ecx, 0x47d098
push edi
call fcn.004065f0
mov edx, dword [edi - 0xc]
mov dword [ebp - 0x40], edx
test edx, edx
jns 0x4080bb
push 0x80070057
call fcn.00406820
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x4080db
push edx
lea ecx, [ebp - 0x34]
call fcn.00406510
mov edi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
lea eax, [edx + 1]
push eax
push edi
call fcn.0043f2a1
mov eax, dword [ebp - 0x40]
add esp, 8
cmp eax, dword [edi - 8]
jg 0x407e05
push edi
mov dword [edi - 0xc], eax
xor ecx, ecx
push str._Current_dir:__s
mov word [edi + eax*2], cx
push dword [ebp - 0x38]
push 8
push 0x47d0b4
call fcn.00417de0
mov edx, dword [0x47d014]
add esp, 0x14
test edx, edx
je 0x408154
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x408149
push 0x105
lea ecx, [ebp - 0x3c]
call fcn.00406510
mov esi, dword [ebp - 0x3c]
mov edx, dword [0x47d014]
push esi
push 0
push 0
push 0x2b
push 0
call edx
push dword [esi - 8]
push esi
call fcn.0043ea2f
add esp, 8
test eax, eax
js 0x407e05
cmp eax, dword [esi - 8]
jg 0x407e05
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push 0x468514
lea ecx, [ebp - 0x3c]
call fcn.004055a0
push 0x2f
push str.SiemensAutomationSiemens_Installer_Assistant
lea ecx, [ebp - 0x3c]
call fcn.00405d10
mov esi, dword [ebp - 0x3c]
mov ecx, dword [0x47d078]
add ecx, 0xfffffff0
lea edx, [esi - 0x10]
mov dword [ebp - 0x40], ecx
cmp edx, ecx
je 0x4081ff
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x30], eax
jl 0x4081f1
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4081f1
push edx
call fcn.00406100
mov edx, dword [ebp - 0x30]
add esp, 4
mov dword [ebp - 0x48], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4081e7
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x48]
add eax, 0x10
mov dword [0x47d078], eax
jmp 0x4081ff
push dword [esi - 0xc]
mov ecx, 0x47d078
push esi
call fcn.004065f0
push esi
push str._Current_Commondir:__s
push dword [ebp - 0x38]
push 8
push 0x47d0b4
call fcn.00417de0
add esp, 0x14
cmp byte [ebp - 0x41], 0
je 0x408404
mov eax, dword [0x47d09c]
cmp dword [eax - 0xc], 0
jne 0x408261
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x47d090
call fcn.00406090
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x47d08c
call fcn.00406090
mov ecx, 0x47d088
call fcn.004063e0
mov dword [0x47cffc], 0x1e
jmp 0x408ae6
push 0x47d09c
lea ecx, [ebp - 0x34]
call fcn.00406090
push 1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x34]
call fcn.004076c0
push 0x468514
push eax
call fcn.00410df0
mov ebx, dword [ebp - 0x30]
add ebx, 0xfffffff0
or edi, 0xffffffff
add esp, 8
mov byte [ebp - 0x42], al
lea ecx, [ebx + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082af
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x42]
test al, al
je 0x4082f5
push 0x468514
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004057f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.00406090
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4082f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xa
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x34]
call fcn.004076c0
push str.INSTDATA_
push dword [eax]
call fcn.00440cbb
add esp, 8
test eax, eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
sete bl
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408337
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x40837e
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
mov eax, dword [eax - 0xc]
add eax, 0xfffffff6
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004056c0
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.00406090
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40837e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x34]
call fcn.004076c0
push 0x468514
push eax
call fcn.00410df0
mov ebx, dword [ebp - 0x30]
add ebx, 0xfffffff0
add esp, 8
mov byte [ebp - 0x42], al
lea ecx, [ebx + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083bc
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x42]
test al, al
je 0x408407
push 0x468514
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004057f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xa
call fcn.00406090
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408407
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x408407
or edi, 0xffffffff
push str.sia.cfg
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004057f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xb
call fcn.00406090
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408449
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x4c]
push ebx
push str.look_for_sia.cfg_path:__s
push dword [ebp - 0x38]
push 8
push 0x47d0b4
call fcn.00417de0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
add esp, 0x14
or eax, ecx
jge 0x408488
push 0x400
lea ecx, [ebp - 0x3c]
call fcn.00406510
mov esi, dword [ebp - 0x3c]
push ebx
push 0x400
push esi
push 0x468518
push str.Path
push str.SiaStarter
call dword [0x47d008]
push dword [esi - 8]
push esi
call fcn.0043ea2f
add esp, 8
test eax, eax
js 0x407e05
cmp eax, dword [esi - 8]
jg 0x407e05
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [esi - 0xc]
test eax, eax
je 0x4084e9
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.00405d10
mov edi, dword [ebp - 0x34]
push edi
push str.sia.cfg_found__Path:__s
jmp 0x4085e1
push str.InstDataResourcesSIA2.ini
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004057f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
call fcn.00406090
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40852b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x3c]
push eax
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.0041d3e0
push eax
push esi
push str.look_for:__s_return__d__errorcode_:__d
push edi
push 8
push 0x47d0b4
call fcn.00417de0
push str.InstDataResourcesSIA.ini
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004057f0
add esp, 0x28
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xd
call fcn.00406090
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40859a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x3c]
push eax
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.0041d3e0
push eax
push esi
push str.look_for:__s_return__d__errorcode_:__d
push edi
push 8
push 0x47d0b4
call fcn.00417de0
add esp, 0x1c
lea ecx, [ebp - 0x34]
push 9
push str.InstData_
call fcn.00405d10
mov edi, dword [ebp - 0x34]
push edi
push str.sia.cfg_not_found__Path:__s
push dword [ebp - 0x38]
push 8
push 0x47d0b4
call fcn.00417de0
add esp, 0x14
cmp byte [ebp - 0x41], 0
mov ecx, 0x47d08c
jne 0x408604
lea eax, [ebp - 0x34]
push eax
jmp 0x408609
push 0x47d098
call fcn.00406090
push dword [0x47d08c]
push str.CurrentPath:__s
push dword [ebp - 0x38]
push 8
push 0x47d0b4
call fcn.00417de0
add esp, 0x14
lea eax, [ebp - 0x34]
push str.Resources_
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004057f0
add esp, 0xc
push eax
mov ecx, 0x47d090
mov byte [ebp - 4], 0xe
call fcn.00406090
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408670
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x47d090]
push str.Current_ResourcesPath:__s
push dword [ebp - 0x38]
push 8
push 0x47d0b4
call fcn.00417de0
push str.SIA2.ini
lea eax, [ebp - 0x30]
push 0x47d090
push eax
call fcn.004057f0
add esp, 0x20
push eax
mov ecx, 0x47d088
mov byte [ebp - 4], 0xf
call fcn.00406090
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4086d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x47d088]
push str.Search_SIA2.ini_at:__s
push dword [ebp - 0x38]
push 8
push 0x47d0b4
call fcn.00417de0
mov eax, dword [0x47d088]
mov dword [ebp - 0x30], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
add esp, 0x14
or eax, ecx
jge 0x408719
push 0x400
lea ecx, [ebp - 0x3c]
call fcn.00406510
mov esi, dword [ebp - 0x3c]
push dword [ebp - 0x30]
push 0x400
push esi
push 0x468518
push str.CopyFile
push str.STARTER
call dword [0x47d008]
push dword [esi - 8]
push esi
call fcn.0043ea2f
add esp, 8
test eax, eax
js 0x407e05
cmp eax, dword [esi - 8]
jg 0x407e05
push esi
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [0x47d088]
push str.Get_CopyFile_from__s_returns__s
push dword [ebp - 0x38]
push 8
push 0x47d0b4
call fcn.00417de0
add esp, 0x18
lea ecx, [ebp - 0x2c]
push 0
push dword [0x47d088]
call fcn.0041d3e0
test eax, eax
jne 0x4087e2
push str.SIA.ini
lea eax, [ebp - 0x30]
push 0x47d090
push eax
call fcn.004057f0
add esp, 0xc
push eax
mov ecx, 0x47d088
mov byte [ebp - 4], 0x10
call fcn.00406090
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4087d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x47d088]
push str.SIA2.ini_not_found__use_sia.ini_from:__s
jmp 0x4087ed
push dword [0x47d088]
push str.SIA2.ini_found__use_Sia2.ini_from:__s
push dword [ebp - 0x38]
push 8
push 0x47d0b4
call fcn.00417de0
mov eax, dword [0x47d088]
mov dword [ebp - 0x30], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
add esp, 0x14
or eax, ecx
jge 0x40882b
push 0x400
lea ecx, [ebp - 0x3c]
call fcn.00406510
mov esi, dword [ebp - 0x3c]
push dword [ebp - 0x30]
push 0x400
push esi
push 0x468518
push str.Level
push str.LOGFILE
call dword [0x47d008]
push dword [esi - 8]
mov dword [ebp - 0x50], eax
push esi
call fcn.0043ea2f
add esp, 8
test eax, eax
js 0x407e05
cmp eax, dword [esi - 8]
jg 0x407e05
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call fcn.0043fc6e
mov eax, dword [0x47d088]
mov dword [ebp - 0x30], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
add esp, 4
or eax, ecx
mov dword [0x47cffc], 0x1e
jge 0x4088b1
push 0x400
lea ecx, [ebp - 0x3c]
call fcn.00406510
mov esi, dword [ebp - 0x3c]
push dword [ebp - 0x30]
push 0x400
push esi
push 0x468518
push str.OEMLogPath
push str.LOGFILE
call dword [0x47d008]
push dword [esi - 8]
push esi
call fcn.0043ea2f
add esp, 8
test eax, eax
js 0x407e05
cmp eax, dword [esi - 8]
jg 0x407e05
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x408ade
call fcn.0041c8d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40891a
push 0x80004005
call fcn.00406820
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0x11
call fcn.0041c8d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x408947
push 0x80004005
call fcn.00406820
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push 0x47d07c
push eax
mov byte [ebp - 4], 0x12
call fcn.00405730
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x13
call fcn.00406090
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40899d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x468514
lea ecx, [ebp - 0x48]
call fcn.004055a0
push 1
push 0x468514
lea ecx, [ebp - 0x48]
call fcn.00405d10
push str.SIA_Starter.log
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004057f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x14
call fcn.00406090
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4089fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x40]
xor eax, eax
test ebx, ebx
setne al
test eax, eax
jne 0x408a13
push 0x80004005
call fcn.00406820
push ebx
push dword [0x47d084]
call fcn.00440cbb
add esp, 8
test eax, eax
je 0x408a9b
mov eax, dword [0x47d000]
test eax, eax
je 0x408a39
push dword [0x47d080]
push 0
call eax
push ebx
push str.OEM_LogFile_is_different__set_to:__s
push dword [ebp - 0x38]
push 8
push 0x47d0b4
call fcn.00417de0
push ebx
push dword [0x47d084]
push 0x468ee4
push dword [ebp - 0x38]
push 8
push 0x47d0b4
call fcn.00417de0
add esp, 0x2c
push 0
push ebx
push dword [0x47d084]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x47d084
call fcn.00406090
push 0x1e
push dword [0x47d084]
mov ecx, 0x47d0b4
call fcn.00417c10
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 0x11
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408abb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408adb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
call fcn.0041d394
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0041d344
mov edx, dword [ebp - 0x54]
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408b10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408b30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [ebx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408b4d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408b6a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x408b8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x50]
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.0043e7dc
mov esp, ebp
pop ebp
ret