Function at 0x4938a0
Capabilities:
Check os version
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532140
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1e4], edi
mov dword [ebp - 0x218], 1
xor esi, esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
push esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x1f4]
push ecx
call sub.gdiplus.dll_GdiplusStartup
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 4], esi
wait
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x1c4]
call fcn.00493180
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x230]
mov edx, dword [eax]
mov dword [ebp - 0x208], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x204], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x200], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1fc], eax
mov eax, dword [edi + 0x234]
mov ecx, dword [eax]
mov dword [ebp - 0x228], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x224], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x220], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x21c], edx
push str.GenerateReport_was_called__WizDoingReport.cpp__59_
push 3
call fcn.00483170
add esp, 8
mov eax, dword [edi + 0x238]
mov ecx, dword [eax + 0x248]
mov dword [ebp - 0x1e8], ecx
mov edx, dword [eax + 0x244]
mov dword [ebp - 0x1e0], edx
lea ebx, [ebx]
mov eax, dword [ebp - 0x1e8]
cmp dword [ebp - 0x1e0], eax
je 0x493b83
mov ecx, dword [ebp - 0x1e0]
mov esi, dword [ecx]
lea ecx, [ebp - 0x60]
call fcn.004922c0
mov byte [ebp - 4], 2
sub esp, 0x10
mov eax, esp
mov edx, dword [esi]
mov dword [eax], edx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [edi + 0x220]
call fcn.004a0150
mov ebx, eax
mov dword [ebp - 0x1f8], ebx
test ebx, ebx
jne 0x493aca
sub esp, 0x10
mov eax, esp
mov edx, dword [esi]
mov dword [eax], edx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [edi + 0x220]
call fcn.004a0980
mov dword [ebp - 0x1cc], eax
sub esp, 0x10
mov eax, esp
mov edx, dword [esi]
mov dword [eax], edx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [edi + 0x220]
call fcn.004a08c0
mov ebx, eax
mov dword [ebp - 0x1f8], ebx
mov edx, dword [ebp - 0x1cc]
mov ecx, dword [edx]
lea eax, [ecx - 0x10]
mov esi, dword [ebp - 0x44]
add esi, 0xfffffff0
cmp eax, esi
je 0x493aca
cmp dword [esi + 0xc], 0
jl 0x493abd
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x493abd
push eax
call fcn.00401500
add esp, 4
mov dword [ebp - 0x1cc], eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x493aaf
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1cc]
add ecx, 0x10
mov dword [ebp - 0x44], ecx
jmp 0x493aca
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.00401e30
lea edx, [ebp - 0x7c]
push edx
mov ecx, ebx
call fcn.00426570
mov byte [ebp - 4], 3
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x493ae5
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040f940
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.00406000
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
call fcn.004265f0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], esi
jb 0x493b10
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040f940
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00406000
mov ebx, dword [ebx + 0xd8]
mov dword [ebp - 0x50], ebx
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x1d8]
call fcn.00404db0
fld qword [eax]
fstp qword [ebp - 0x60]
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x230]
call fcn.00404db0
fld qword [eax]
fstp qword [ebp - 0x58]
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00493810
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00492390
add dword [ebp - 0x1e0], 4
jmp 0x4939b0
lea ebx, [edi - 0x58]
push 0xd6
mov ecx, ebx
call fcn.00492050
lea esi, [edi + 0x224]
push esi
call fcn.0047d000
add esp, 4
cmp dword [ebp - 0x1c8], 0
je 0x493bb4
mov dword [edi + 0x22c], 0
mov ecx, dword [esi]
mov dword [ebp - 0x1b4], ecx
mov edx, dword [esi + 4]
mov dword [ebp - 0x1b0], edx
mov eax, dword [esi + 8]
mov dword [ebp - 0x1ac], eax
lea ecx, [ebp - 0x1a8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
sub esp, 0x10
mov eax, esp
mov edx, dword [ebp - 0x1a8]
mov dword [eax], edx
mov ecx, dword [ebp - 0x1a4]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x1a0]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x19c]
mov dword [eax + 0xc], ecx
lea edx, [ebp - 0x1cc]
push edx
mov ecx, ebx
call fcn.004929d0
mov byte [ebp - 4], 5
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
mov esi, dword [ebp - 0x198]
add esi, 0xfffffff0
cmp eax, esi
je 0x493c7b
lea ebx, [esi + 0xc]
cmp dword [ebx], 0
jl 0x493c6b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x493c6b
push eax
call fcn.00401500
add esp, 4
mov dword [ebp - 0x1c8], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x493c5a
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1c8]
add ecx, 0x10
mov dword [ebp - 0x198], ecx
jmp 0x493c7b
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x198]
call fcn.00401e30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1cc]
call fcn.00401ac0
mov dword [ebp - 0x190], 0x114
lea edx, [ebp - 0x190]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x18c], 5
jbe 0x493d42
lea eax, [ebp - 0x198]
push eax
push 0x53f288
lea ecx, [ebp - 0x1cc]
push ecx
call fcn.004375a0
add esp, 0xc
mov byte [ebp - 4], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
mov esi, dword [ebp - 0x198]
add esi, 0xfffffff0
cmp eax, esi
je 0x493d33
lea ebx, [esi + 0xc]
cmp dword [ebx], 0
jl 0x493d23
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x493d23
push eax
call fcn.00401500
add esp, 4
mov dword [ebp - 0x1c8], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x493d12
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1c8]
add ecx, 0x10
mov dword [ebp - 0x198], ecx
jmp 0x493d33
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x198]
call fcn.00401e30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1cc]
call fcn.00401ac0
lea edx, [ebp - 0x1cc]
push edx
lea ecx, [edi - 0x58]
call fcn.00492c60
mov byte [ebp - 4], 7
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
mov esi, dword [ebp - 0x194]
add esi, 0xfffffff0
cmp eax, esi
je 0x493dbb
lea ebx, [esi + 0xc]
cmp dword [ebx], 0
jl 0x493dab
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x493dab
push eax
call fcn.00401500
add esp, 4
mov dword [ebp - 0x1c8], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x493d9a
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1c8]
add ecx, 0x10
mov dword [ebp - 0x194], ecx
jmp 0x493dbb
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x194]
call fcn.00401e30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1cc]
call fcn.00401ac0
mov byte [ebp - 0x1cd], 0
mov ecx, edi
call fcn.004a6bc0
push eax
lea edx, [ebp - 0x1c4]
push edx
call fcn.0047bd80
add esp, 8
test al, al
je 0x493f6f
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0x1d4], esp
lea eax, [ebp - 0x1c4]
push eax
call fcn.004932f0
mov byte [ebp - 4], 8
mov byte [ebp - 4], 1
lea ecx, [edi - 0x58]
call fcn.004933b0
mov ecx, dword [edi + 0x23c]
mov eax, dword [ecx]
mov ecx, edi
sub eax, 2
je 0x493f28
dec eax
je 0x493ece
dec eax
je 0x493e8a
call fcn.004a6bc0
push eax
lea edx, [ebp - 0x1c4]
push edx
lea eax, [ebp - 0x1c8]
push eax
call fcn.0043b2d0
add esp, 0xc
mov byte [ebp - 4], 0xc
mov ecx, dword [edi + 0x21c]
push eax
call fcn.004022d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c8]
call fcn.00401ac0
push str.GenerateHtmlReport_succeeded__WizDoingReport.cpp__141_
push 3
call fcn.00483170
mov dword [edi + 0x240], 0xd4
jmp 0x493f85
push 0
call fcn.004a6bc0
push eax
lea ecx, [ebp - 0x1c4]
push ecx
lea edx, [ebp - 0x1cc]
push edx
call fcn.00456550
add esp, 0x10
mov byte [ebp - 4], 0xa
mov ecx, dword [edi + 0x21c]
push eax
call fcn.004022d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1cc]
call fcn.00401ac0
push str.GeneratePdfReport_succeeded__WizDoingReport.cpp__129_
jmp 0x493e74
call fcn.004a6bc0
push eax
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x1e8]
push ecx
call fcn.004324b0
add esp, 0xc
mov byte [ebp - 4], 0xb
mov ecx, dword [edi + 0x21c]
push eax
call fcn.004022d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1e8]
call fcn.00401ac0
push str.GenerateSCVReport_succeeded__WizDoingReport.cpp__134_
push 3
call fcn.00483170
mov dword [edi + 0x240], 0xd4
mov byte [ebp - 0x1cd], 1
jmp 0x493f85
push 1
call fcn.004a6bc0
push eax
lea edx, [ebp - 0x1c4]
push edx
lea eax, [ebp - 0x1d4]
push eax
call fcn.00456550
add esp, 0x10
mov byte [ebp - 4], 9
mov ecx, dword [edi + 0x21c]
push eax
call fcn.004022d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1d4]
call fcn.00401ac0
push str.GeneratePdfReport_succeeded__WizDoingReport.cpp__124_
jmp 0x493e74
push str.Processing_logs_failed___WizDoingReport.cpp__148_
push 3
call fcn.00483170
mov dword [edi + 0x240], 0xd7
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [edi + 0x21c]
push ecx
lea ecx, [ebp - 0x1dc]
call fcn.00401a60
mov bl, 0xd
mov byte [ebp - 4], bl
cmp byte [ebp - 0x1cd], 0
jne 0x493fc7
push 0x5c
lea ecx, [ebp - 0x1dc]
call fcn.004370b0
push eax
lea ecx, [ebp - 0x1dc]
call fcn.0045bb40
push str.logs.xml
lea edx, [ebp - 0x1dc]
push edx
lea eax, [ebp - 0x1d4]
push eax
call fcn.0042b720
add esp, 0xc
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
call fcn.00401ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1dc]
call fcn.00401ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
call fcn.00493210
wait
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1f4]
push edx
call sub.gdiplus.dll_GdiplusShutdown
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret