Function at 0x42f120
Capabilities:
Check if file exists
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x5124d8
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2a0]
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov dword [0x5487cc], eax
cmp eax, ebp
je 0x42f190
call fcn.0042f830
cmp dword [esp + 0x2a4], ebp
je 0x42f436
mov dword [esp + 0x20], 1
jmp 0x42f436
push ebp
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
mov ebx, 1
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
call sub.gdiplus.dll_GdiplusStartup
push 4
call fcn.004eac13
add esp, 4
cmp eax, ebp
je 0x42f1cd
mov dword [eax], vtable.RootToolCtrlFactory.0
mov esi, eax
jmp 0x42f1cf
xor esi, esi
test byte [0x548ae4], bl
jne 0x42f1f4
or dword [0x548ae4], ebx
push 0x512fa0
mov dword [0x548ab8], 0x5224bc
call fcn.004ec2bc
add esp, 4
mov dword [0x548abc], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, al
cmp eax, 5
mov eax, 0x51d28c
ja 0x42f212
mov eax, 0x51d298
call fcn.0043e3a0
call fcn.0043e040
call fcn.0043d9d0
call fcn.0043d5a0
call fcn.00419e00
call fcn.00435cf0
mov ecx, dword [0x548364]
mov esi, eax
cmp ecx, ebp
je 0x42f24a
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov dword [0x548364], ebp
cmp esi, ebx
jne 0x42f254
mov dword [esp + 0x20], ebx
jmp 0x42f263
cmp esi, 2
jne 0x42f263
mov dword [0x544984], 0x3f7
mov ecx, dword [esp + 0x1c]
push ecx
call sub.gdiplus.dll_GdiplusShutdown
cmp dword [0x54835c], ebp
je 0x42f431
mov eax, dword [0x54883c]
add eax, 0xfffffff0
call fcn.00404fe0
add eax, 0x10
mov dword [esp + 0x14], eax
lea edx, [esp + 0x14]
push edx
mov eax, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x29c], ebp
call fcn.00417f60
push eax
mov ecx, 0x51d2a0
call fcn.00418120
mov bl, al
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f2d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x42f2e6
mov edx, 0x51d2a4
lea edi, [esp + 0x14]
call fcn.00417f00
push 0x24c
lea ecx, [esp + 0x44]
push ebp
push ecx
mov dword [esp + 0x48], ebp
call fcn.004f08c0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, 0x51d2a8
call fcn.00418040
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f344
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x42f404
lea edx, [esp + 0x68]
lea edi, [esp + 0x14]
call fcn.00417f00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [0x546fac]
mov eax, dword [edx + 0xc]
mov ecx, 0x546fac
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x298], 1
mov eax, dword [0x54887c]
mov ecx, 0x51d2b4
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42f3b6
test dx, dx
je 0x42f3b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42f3b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42f390
xor eax, eax
jmp 0x42f3bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42f3d1
mov edx, str._supplyid10077
lea edi, [esp + 0x18]
call fcn.00407780
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004159d0
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x298], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f404
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x298], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f42f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebp, ebp
call fcn.0042f6b0
mov edi, dword [0x5487d4]
cmp edi, ebp
je 0x42f679
cmp dword [esp + 0x20], ebp
je 0x42f4dc
cmp dword [0x544940], ebp
jne 0x42f46c
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0x64
call esi
cmp dword [0x544940], ebp
je 0x42f460
lea ecx, [esp + 0x1c]
push 0x5487e8
push ecx
mov ebx, 0x51d2e8
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00406e40
test esi, esi
je 0x42f679
lea edx, [esp + 0x1c]
push 0x5487e8
push edx
mov ebx, 0x51d304
call fcn.00418040
mov dword [esp + 0x2a0], 2
mov eax, dword [eax]
push eax
mov ecx, 0x51d300
call fcn.004159d0
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.00406e40
jmp 0x42f679
lea ecx, [esp + 0x20]
push 0x548884
push ecx
mov ebx, 0x5487e8
call fcn.00435bd0
push eax
lea edx, [esp + 0x24]
push edx
mov ebx, 0x51d340
mov dword [esp + 0x2a8], 3
call fcn.00418040
push eax
lea eax, [esp + 0x30]
push eax
mov ebx, 0x51d31c
mov byte [esp + 0x2b0], 4
call fcn.00418040
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f553
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x298], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f57a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x298], ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f5a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x42f679
lea ecx, [esp + 0x24]
push 0x548884
push ecx
mov ebx, 0x5487e8
call fcn.00435bd0
push eax
lea edx, [esp + 0x34]
push edx
mov ebx, 0x51d36c
mov dword [esp + 0x2a8], 5
call fcn.00418040
push eax
lea eax, [esp + 0x28]
push eax
mov ebx, str.ShuameDaemon.exe
mov byte [esp + 0x2b0], 6
call fcn.00418040
mov byte [esp + 0x2b0], 7
mov eax, dword [eax]
push eax
mov ecx, 0x51d344
call fcn.004159d0
mov byte [esp + 0x2b4], 6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x1c
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f62e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x298], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f655
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x298], ebp
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x42f679
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004ea83a
add esp, 0x288
ret 8