Function at 0x40fa50
Capabilities:
Accept command line arguments
Check if file exists
Copy file
Delete file
Get common file path
Get file size
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e106c
mov eax, dword fs:[0]
push eax
sub esp, 0xe7c
mov eax, dword [0x51c240]
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, ecx
mov dword [ebp - 0xe64], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0040b7d0
mov ecx, eax
call fcn.00404f40
call fcn.0041b830
mov ecx, eax
call fcn.0041b8c0
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x410ecd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe60], eax
mov dword [ebp - 4], 0
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x410ed7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe5c], eax
mov eax, str.__pep
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe5c]
test eax, 0xffff0000
jne 0x40fb07
movzx eax, ax
push eax
call fcn.00403ab0
jmp 0x40fb13
push 5
push str.__pep
call fcn.00403da0
lea eax, [ebp - 0xe60]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xe5c]
push eax
call fcn.0040b7d0
mov ecx, eax
call fcn.00404d00
mov edx, dword [ebp - 0xe5c]
or edi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fb55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xe60]
call fcn.004b6987
add esp, 4
mov dword [ebp - 0xe80], eax
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x410ee1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe5c], eax
mov eax, str.__pid
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe5c]
test eax, 0xffff0000
jne 0x40fba7
movzx eax, ax
push eax
call fcn.00403ab0
jmp 0x40fbb3
push 5
push str.__pid
call fcn.00403da0
lea eax, [ebp - 0xe60]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xe5c]
push eax
call fcn.0040b7d0
mov ecx, eax
call fcn.00404d00
mov edx, dword [ebp - 0xe5c]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fbf2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xe60]
call fcn.004b695d
lea ecx, [esi + 0x100]
mov ebx, eax
push ecx
push ebx
call fcn.00418130
add esp, 0xc
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x410eeb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe5c], eax
mov eax, str.__tid
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xe5c]
test eax, 0xffff0000
jne 0x40fc4d
movzx eax, ax
push eax
call fcn.00403ab0
jmp 0x40fc59
push 5
push str.__tid
call fcn.00403da0
lea eax, [ebp - 0xe60]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xe5c]
push eax
call fcn.0040b7d0
mov ecx, eax
call fcn.00404d00
mov edx, dword [ebp - 0xe5c]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fc98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xe60]
call fcn.004b695d
add esp, 4
mov dword [ebp - 0xe78], eax
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x410ef5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe5c], eax
mov eax, str.__dir
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xe5c]
test eax, 0xffff0000
jne 0x40fcea
movzx eax, ax
push eax
call fcn.00403ab0
jmp 0x40fcf6
push 5
push str.__dir
call fcn.00403da0
lea eax, [ebp - 0xe60]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xe5c]
push eax
call fcn.0040b7d0
mov ecx, eax
call fcn.00404d00
mov edx, dword [ebp - 0xe5c]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fd35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xe60]
add eax, 0xfffffff0
push eax
call fcn.00402c10
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xe88], esi
mov byte [ebp - 4], 9
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x410eff
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe5c], eax
mov eax, str.__direx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xe5c]
test eax, 0xffff0000
jne 0x40fd92
movzx eax, ax
push eax
call fcn.00403ab0
jmp 0x40fd9e
push 7
push str.__direx
call fcn.00403da0
lea eax, [ebp - 0xe60]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xe5c]
push eax
call fcn.0040b7d0
mov ecx, eax
call fcn.00404d00
mov edx, dword [ebp - 0xe5c]
mov eax, edi
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fddd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xe60]
add eax, 0xfffffff0
push eax
call fcn.00402c10
add eax, 0x10
add esp, 4
mov dword [ebp - 0xe74], eax
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 0xc
jne 0x40fe25
push dword [ebp - 0xe78]
mov ecx, dword [ebp - 0xe64]
push ebx
push dword [ebp - 0xe80]
add ecx, 0x70
call fcn.0040bb00
test eax, eax
je 0x410479
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x410f09
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe5c], eax
mov eax, str.__ver
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xe5c]
test eax, 0xffff0000
jne 0x40fe63
movzx eax, ax
push eax
call fcn.00403ab0
jmp 0x40fe6f
push 5
push str.__ver
call fcn.00403da0
lea eax, [ebp - 0xe60]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0xe5c]
push eax
call fcn.0040b7d0
mov ecx, eax
call fcn.00404d00
mov edx, dword [ebp - 0xe5c]
mov ebx, eax
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40feb0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
je 0x40fed6
mov ebx, dword [ebp - 0xe64]
lea eax, [ebp - 0xe60]
add ebx, 0x64
push eax
mov ecx, ebx
call fcn.00404820
jmp 0x40fffe
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00488360
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call ebx
push str.ComputerZ_HardwareDll.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x200
lea eax, [ebp - 0xa30]
push 0
push eax
call fcn.00488360
push 0x100
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0040b520
add esp, 0x18
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x410f13
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe5c], eax
lea eax, [ebp - 0xa30]
mov byte [ebp - 4], 0xf
test eax, 0xffff0000
jne 0x40ff91
movzx eax, ax
lea ecx, [ebp - 0xe5c]
push eax
call fcn.00403ab0
jmp 0x40ffc2
lea ecx, [ebp - 0xa30]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ffa0
sub ecx, edx
lea eax, [ebp - 0xa30]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe5c]
call fcn.00403da0
mov ebx, dword [ebp - 0xe64]
lea eax, [ebp - 0xe5c]
add ebx, 0x64
mov byte [ebp - 4], 0x10
push eax
mov ecx, ebx
call fcn.00404820
mov edx, dword [ebp - 0xe5c]
mov eax, edi
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fffe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xe64]
push ebx
lea ecx, [ecx + 0x44]
call fcn.00404820
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x410f1d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe5c], eax
mov eax, str.__src
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xe5c]
test eax, 0xffff0000
jne 0x41004b
movzx eax, ax
push eax
call fcn.00403ab0
jmp 0x410057
push 5
push str.__src
call fcn.00403da0
lea eax, [ebp - 0xe60]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0xe5c]
push eax
call fcn.0040b7d0
mov ecx, eax
call fcn.00404d00
mov edx, dword [ebp - 0xe5c]
mov ecx, edi
mov dword [ebp - 0xe78], eax
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4100a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xe78]
test eax, eax
je 0x4100bd
mov eax, dword [ebp - 0xe64]
lea ecx, [ebp - 0xe60]
push ecx
lea ecx, [eax + 0x68]
call fcn.00404820
jmp 0x4100d2
mov ecx, dword [ebp - 0xe64]
push 3
add ecx, 0x68
push 0x4ef408
call fcn.00403da0
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x410f27
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe5c], eax
mov eax, str.__rep
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xe5c]
test eax, 0xffff0000
jne 0x410110
movzx eax, ax
push eax
call fcn.00403ab0
jmp 0x41011c
push 5
push str.__rep
call fcn.00403da0
lea eax, [ebp - 0xe60]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0xe5c]
push eax
call fcn.0040b7d0
mov ecx, eax
call fcn.00404d00
mov edx, dword [ebp - 0xe5c]
mov eax, edi
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41015b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xe60]
call fcn.004b695d
mov ecx, dword [ebp - 0xe64]
dec eax
add esp, 4
neg eax
sbb eax, eax
inc eax
mov dword [ecx + 0x6c], eax
xor eax, eax
cmp dword [ebp - 0xe80], eax
sete al
mov dword [ebp - 0xe68], eax
call fcn.0040b860
push 0
lea ecx, [ebp - 0xe58]
push ecx
mov ecx, eax
call fcn.004521b0
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x15
jb 0x4101aa
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xe5c]
call fcn.00402560
mov edx, dword [ebp - 0xe44]
mov byte [ebp - 4], 0x17
cmp edx, 8
jb 0x4101fa
mov ecx, dword [ebp - 0xe58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4101f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410f31
push edx
push ecx
call fcn.0044d755
add esp, 8
mov edx, dword [ebp - 0xe5c]
xor eax, eax
mov word [ebp - 0xe58], ax
mov ecx, 1
mov dword [ebp - 0xe48], 0
mov dword [ebp - 0xe44], 7
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x410247
push 0x104
lea ecx, [ebp - 0xe5c]
call fcn.00403c60
mov edx, dword [ebp - 0xe5c]
cmp dword [edx - 8], 0x104
jl 0x410f36
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebp - 0xe5c]
push str.logdumpuper.log.on
push edx
mov word [eax + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0xe5c]
push dword [eax - 8]
push eax
call fcn.00495c92
mov edx, eax
add esp, 8
test edx, edx
js 0x410f36
mov ecx, dword [ebp - 0xe5c]
cmp edx, dword [ecx - 8]
jg 0x410f36
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0xe5c]
mov word [eax + edx*2], cx
push dword [ebp - 0xe5c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0xe5c]
test eax, eax
mov eax, dword [ebp - 0xe68]
mov ecx, 1
cmovne eax, ecx
mov byte [ebp - 4], 0xc
mov dword [ebp - 0xe68], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4102f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xe64]
lea edx, [ecx + 0x28]
lea eax, [ecx + 0x68]
mov dword [ebp - 0xe80], edx
push eax
mov ecx, edx
call fcn.00419fe0
cmp dword [ebp - 0xe68], 0
jne 0x4103bc
mov eax, dword [ebp - 0xe64]
cmp dword [eax + 0x6c], 0
jne 0x4103bc
push 0
lea ecx, [ebp - 0xe68]
push ecx
mov ecx, eax
call fcn.00411cc0
push 0x208
lea eax, [ebp - 0xe40]
push 0
push eax
call fcn.00488360
add esp, 0xc
lea eax, [ebp - 0xe40]
push dword [ebp - 0xe68]
push 0x104
push eax
mov eax, dword [ebp - 0xe64]
push 0x4ee708
push str.dumpver
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xe40]
push eax
push dword [ebx]
call fcn.004b6b2f
mov edx, dword [ebp - 0xe68]
xor ebx, ebx
add esp, 8
mov byte [ebp - 4], 0xc
test eax, eax
mov eax, edi
sete bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4103b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x410479
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x410f40
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe6c], eax
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 0x19
jne 0x4104de
mov ebx, dword [ebp - 0xe64]
lea eax, [ebp - 0xe78]
push eax
lea ecx, [ebx + 0x70]
call fcn.0040ab40
push eax
lea ecx, [ebp - 0xe6c]
mov byte [ebp - 4], 0x1a
call fcn.00404820
mov edx, dword [ebp - 0xe78]
mov eax, edi
mov byte [ebp - 4], 0x19
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41042d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xe6c]
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call eax
test eax, eax
mov eax, dword [ebp - 0xe6c]
je 0x41045e
cmp dword [eax - 0xc], 0
je 0x41045e
lea eax, [ebp - 0xe6c]
push eax
lea ecx, [ebx + 0x60]
call fcn.00404820
jmp 0x410588
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0xc
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410479
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xe74]
mov eax, edi
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41049a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4104b5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xe60]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4104d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x410eb1
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call eax
test eax, eax
jne 0x4104f1
xor ebx, ebx
jmp 0x410e30
push 0x208
lea eax, [ebp - 0xc38]
push 0
push eax
call fcn.00488360
add esp, 0xc
lea eax, [ebp - 0xc38]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0xc38]
push str.LdsDumpUper
push eax
call ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00488360
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc38]
push eax
call ebx
lea ecx, [ebp - 0xc38]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410560
sub ecx, edx
lea eax, [ebp - 0xc38]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe6c]
call fcn.00403da0
mov ebx, dword [ebp - 0xe64]
lea eax, [ebp - 0xe6c]
add ebx, 0x5c
push eax
mov ecx, ebx
call fcn.00404820
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
add edx, 5
js 0x410f4a
mov eax, 1
sub eax, dword [ecx - 4]
mov dword [ebp - 0xe78], eax
mov eax, dword [ecx - 8]
sub eax, edx
or eax, dword [ebp - 0xe78]
jge 0x4105cc
push edx
mov ecx, ebx
call fcn.00403c60
mov ecx, dword [ebx]
push str..zip
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
mov eax, dword [ebx]
test eax, eax
jne 0x4105e2
xor ecx, ecx
jmp 0x4105f8
push dword [eax - 8]
push eax
call fcn.00495c92
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x410f36
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x410f36
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
push ebx
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0xe70]
call fcn.0041bb60
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 0x1b
jne 0x410dcd
lea ecx, [ebp - 0xe70]
call fcn.0041be20
test eax, eax
je 0x410db9
lea eax, [ebp - 0xe6c]
push eax
lea ecx, [ebp - 0xe70]
call fcn.0041bc70
test eax, eax
je 0x410db9
mov eax, dword [ebp - 0xe64]
mov ecx, 0x4ef408
mov edx, dword [eax + 0x68]
mov eax, edx
mov bx, word [eax]
cmp bx, word [ecx]
jne 0x41068b
test bx, bx
je 0x410687
mov bx, word [eax + 2]
cmp bx, word [ecx + 2]
jne 0x41068b
add eax, 4
add ecx, 4
test bx, bx
jne 0x410665
xor eax, eax
jmp 0x410690
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4107f6
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00488360
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x420]
push eax
call ebx
lea eax, [ebp - 0x420]
push eax
call ebx
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x410f54
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe5c], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 0x1c
test eax, 0xffff0000
jne 0x410718
movzx eax, ax
lea ecx, [ebp - 0xe5c]
push eax
call fcn.00403ab0
jmp 0x410743
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410721
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe5c]
call fcn.00403da0
push str.logComputerZ_HardwareDll.log
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 0x1d
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410abd
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00488360
add esp, 0xc
lea ecx, [ebp - 0xe5c]
push str.log_
call fcn.0040eb90
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0xe5c]
call fcn.0040eb90
push str..log
lea ecx, [ebp - 0xe5c]
call fcn.0040eb90
push 0
push dword [ebp - 0xe5c]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x410abd
lea eax, [ebp - 0xe5c]
push eax
lea ecx, [ebp - 0xe70]
call fcn.0041bc70
push dword [ebp - 0xe5c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x410abd
mov ecx, str.ldsgamecenter
mov eax, edx
nop dword [eax]
mov bx, word [eax]
cmp bx, word [ecx]
jne 0x410826
test bx, bx
je 0x410822
mov bx, word [eax + 2]
cmp bx, word [ecx + 2]
jne 0x410826
add eax, 4
add ecx, 4
test bx, bx
jne 0x410800
xor eax, eax
jmp 0x41082b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x410943
push 0x208
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00488360
add esp, 0xc
lea eax, [ebp - 0x628]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x410f5e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe5c], eax
lea eax, [ebp - 0x628]
mov byte [ebp - 4], 0x1e
test eax, 0xffff0000
jne 0x41089a
movzx eax, ax
lea ecx, [ebp - 0xe5c]
push eax
call fcn.00403ab0
jmp 0x4108c5
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4108a3
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe5c]
call fcn.00403da0
push str.LDSGameCenterlogLDSGameCenter.log
lea eax, [ebp - 0x628]
mov byte [ebp - 4], 0x1f
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410abd
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00488360
add esp, 0xc
lea ecx, [ebp - 0xe5c]
push str.LDSGameCenterlog_
call fcn.0040eb90
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0xe5c]
call fcn.0040eb90
push str..log
lea ecx, [ebp - 0xe5c]
call fcn.0040eb90
lea eax, [ebp - 0x628]
jmp 0x410a8b
mov eax, str.ldsgamemini
mov cx, word [edx]
cmp cx, word [eax]
jne 0x41096e
test cx, cx
je 0x41096a
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x41096e
add edx, 4
add eax, 4
test cx, cx
jne 0x410948
xor eax, eax
jmp 0x410973
sbb eax, eax
or eax, 1
test eax, eax
jne 0x410ade
push 0x208
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.00488360
add esp, 0xc
lea eax, [ebp - 0x830]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00411c10
mov ecx, eax
test ecx, ecx
je 0x410f68
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe5c], eax
lea eax, [ebp - 0x830]
mov byte [ebp - 4], 0x20
test eax, 0xffff0000
jne 0x4109e2
movzx eax, ax
lea ecx, [ebp - 0xe5c]
push eax
call fcn.00403ab0
jmp 0x410a12
lea ecx, [ebp - 0x830]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4109f0
sub ecx, edx
lea eax, [ebp - 0x830]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe5c]
call fcn.00403da0
push str.LDSGameCenterlogLDSGameMini.log
lea eax, [ebp - 0x830]
mov byte [ebp - 4], 0x21
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410abd
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00488360
add esp, 0xc
lea ecx, [ebp - 0xe5c]
push str.LDSGameCenterlog_
call fcn.0040eb90
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0xe5c]
call fcn.0040eb90
push str..log
lea ecx, [ebp - 0xe5c]
call fcn.0040eb90
lea eax, [ebp - 0x830]
push 0
push dword [ebp - 0xe5c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x410abd
lea eax, [ebp - 0xe5c]
push eax
lea ecx, [ebp - 0xe70]
call fcn.0041bc70
push dword [ebp - 0xe5c]
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call eax
mov edx, dword [ebp - 0xe5c]
mov eax, edi
mov byte [ebp - 4], 0x1b
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410ade
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xe74]
cmp dword [eax - 0xc], 0
je 0x410cb5
push str._temp
lea eax, [ebp - 0xe74]
push eax
lea eax, [ebp - 0xe68]
push eax
call fcn.0040ea30
lea eax, [ebp - 0xe68]
mov byte [ebp - 4], 0x22
push eax
lea eax, [ebp - 0xe74]
push eax
call fcn.00417a00
push 0x5c
push dword [ebp - 0xe6c]
call fcn.00488a3c
mov ecx, dword [ebp - 0xe6c]
add esp, 0x1c
test eax, eax
jne 0x410b3c
or eax, 0xffffffff
jmp 0x410b40
sub eax, ecx
sar eax, 1
mov edx, dword [ecx - 0xc]
xor ebx, ebx
add eax, 1
cmovns ebx, eax
mov dword [ebp - 0xe84], ebx
xor ebx, ebx
sub edx, eax
mov eax, SysReAllocString
cmovns ebx, edx
mov edx, dword [ebp - 0xe84]
sub eax, edx
mov dword [ebp - 0xe78], ebx
cmp eax, ebx
jl 0x410f8b
lea eax, [ebx + edx]
mov ebx, dword [ecx - 0xc]
cmp eax, ebx
jle 0x410b83
mov eax, ebx
sub eax, edx
jmp 0x410b89
mov eax, dword [ebp - 0xe78]
xor ebx, ebx
cmp edx, dword [ecx - 0xc]
cmovle ebx, eax
test edx, edx
jne 0x410bb4
cmp ebx, dword [ecx - 0xc]
jne 0x410bb4
add ecx, 0xfffffff0
push ecx
call fcn.00402c10
add esp, 4
add eax, 0x10
mov dword [ebp - 0xe5c], eax
jmp 0x410c5c
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x410bca
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [ebp - 0xe78], eax
test eax, eax
jne 0x410bdc
call fcn.00411c10
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov dword [ebp - 0xe78], eax
mov edx, dword [ebp - 0xe84]
mov ecx, dword [ebp - 0xe6c]
lea ecx, [ecx + edx*2]
mov dword [ebp - 0xe84], ecx
test eax, eax
je 0x410f72
test ecx, ecx
jne 0x410c05
test ebx, ebx
jne 0x410f7c
mov eax, dword [eax]
mov ecx, dword [ebp - 0xe78]
push 2
push ebx
call dword [eax]
test eax, eax
je 0x410f86
add eax, 0x10
mov dword [ebp - 0xe5c], eax
test ebx, ebx
js 0x410f36
cmp ebx, dword [eax - 8]
jg 0x410f36
lea ecx, [ebx + ebx]
mov dword [eax - 0xc], ebx
mov eax, dword [ebp - 0xe5c]
xor edx, edx
push ecx
push dword [ebp - 0xe84]
push ecx
mov word [ecx + eax], dx
push dword [ebp - 0xe5c]
call fcn.004140d0
add esp, 0x10
mov ebx, dword [ebp - 0xe64]
lea eax, [ebp - 0xe5c]
push 0xa
push 0
push eax
lea eax, [ebp - 0xe68]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0xe70]
mov ecx, ebx
push eax
call fcn.0040f750
lea ecx, [ebp - 0xe5c]
mov byte [ebp - 4], 0x22
call fcn.00402960
lea eax, [ebp - 0xe68]
push eax
call fcn.00417e80
add esp, 4
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0xe68]
call fcn.00402960
jmp 0x410cbb
mov ebx, dword [ebp - 0xe64]
lea ecx, [ebp - 0xe70]
call fcn.0041bd20
mov eax, dword [ebp - 0xe74]
cmp dword [eax - 0xc], 0
je 0x410da2
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebx + 0x5c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x410d18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0xe64]
mov ecx, dword [ebp - 0xe80]
add eax, 0x5c
push eax
call fcn.00419540
jmp 0x410e14
lea eax, [ebp - 0xe7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xe78], 0
ja 0x410d42
cmp dword [ebp - 0xe7c], 0x1e00000
jbe 0x410da2
mov ebx, dword [ebp - 0xe64]
add ebx, 0x5c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea ecx, [ebp - 0xe68]
call fcn.0041bb60
lea ecx, [ebp - 0xe68]
mov byte [ebp - 4], 0x24
call fcn.0041be20
test eax, eax
je 0x410d93
lea eax, [ebp - 0xe6c]
push eax
lea ecx, [ebp - 0xe68]
call fcn.0041bc70
test eax, eax
je 0x410d93
lea ecx, [ebp - 0xe68]
call fcn.0041bd20
lea ecx, [ebp - 0xe68]
mov byte [ebp - 4], 0x1b
call fcn.0041bc20
mov eax, dword [ebp - 0xe64]
mov ecx, dword [ebp - 0xe80]
add eax, 0x5c
push eax
call fcn.00419540
jmp 0x410e14
mov ecx, dword [ebp - 0xe80]
lea eax, [ebp - 0xe6c]
push eax
call fcn.00419540
jmp 0x410e14
mov ecx, dword [ebp - 0xe64]
lea eax, [ebp - 0xe78]
push eax
lea eax, [ebp - 0xe88]
mov dword [ebp - 0xe78], 0xa
push eax
lea eax, [ebp - 0xe70]
push eax
call fcn.0040eec0
mov ecx, dword [ebp - 0xe80]
push ebx
call fcn.00419540
lea ecx, [ebp - 0xe70]
call fcn.0041bd20
mov esi, dword [ebp - 0xe88]
mov ecx, dword [ebp - 0xe64]
mov ebx, 1
mov eax, dword [ecx + 4]
mov dword [ecx + 0x58], eax
lea ecx, [ebp - 0xe70]
call fcn.0041bc20
mov edx, dword [ebp - 0xe6c]
mov eax, edi
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410e51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xe74]
mov eax, edi
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410e72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410e8d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xe60]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x410eaf
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0044db73
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
call fcn.004928c6
push 0x80070057
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80070057
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80004005
call fcn.00402bc0
push 0x80070057
call fcn.00402bc0
call fcn.00403ed0
push 0x80070216
call fcn.00402bc0
int3