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

Disassembly:
push 0xffffffffffffffff
push 0x4a06d1
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [esp + 0x298]
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov dword [0x4c57cc], eax
cmp eax, ebp
je 0x421650
call fcn.004219c0
cmp dword [esp + 0x29c], ebp
je 0x4218f1
mov dword [esp + 0x20], 1
jmp 0x4218f1
push ebp
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
mov ebx, 1
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call sub.gdiplus.dll_GdiplusStartup
push 4
call fcn.0047d26c
add esp, 4
cmp eax, ebp
je 0x42168d
mov dword [eax], vtable.RootToolCtrlFactory.0
mov esi, eax
jmp 0x42168f
xor esi, esi
test byte [0x4c5a58], bl
jne 0x4216b4
or dword [0x4c5a58], ebx
push 0x4a0fd0
mov dword [0x4c5a2c], 0x4ab30c
call fcn.0047e2d8
add esp, 4
mov dword [0x4c5a30], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, al
cmp eax, 5
mov eax, 0x4a713c
ja 0x4216d2
mov eax, 0x4a7148
call fcn.0042eec0
call fcn.0042eb60
call fcn.0042e490
call fcn.0042e060
call fcn.00413620
call fcn.004266a0
mov ecx, dword [0x4c56ac]
mov esi, eax
cmp ecx, ebp
je 0x42170a
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov dword [0x4c56ac], ebp
cmp esi, ebx
jne 0x421714
mov dword [esp + 0x20], ebx
jmp 0x421723
cmp esi, 2
jne 0x421723
mov dword [0x4c2298], 0x3f7
mov ecx, dword [esp + 0x1c]
push ecx
call sub.gdiplus.dll_GdiplusShutdown
cmp dword [0x4c56a8], ebp
je 0x4218f1
mov eax, dword [0x4c583c]
add eax, 0xfffffff0
call fcn.00404f50
add eax, 0x10
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
push edx
mov eax, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x294], ebp
call fcn.00412120
push eax
mov ecx, 0x4a7150
call fcn.004122e0
mov bl, al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421794
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4217a6
mov edx, 0x4a7154
lea edi, [esp + 0x18]
call fcn.004120c0
push 0x24c
lea ecx, [esp + 0x3c]
push ebp
push ecx
mov dword [esp + 0x40], ebp
call fcn.004820f0
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, 0x4a7158
call fcn.00412200
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421804
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x4218c4
lea edx, [esp + 0x60]
lea edi, [esp + 0x18]
call fcn.004120c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [0x4c45ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c45ac
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x290], 1
mov eax, dword [0x4c5860]
mov ecx, 0x4a7164
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421876
test dx, dx
je 0x421872
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421876
add eax, 4
add ecx, 4
test dx, dx
jne 0x421850
xor eax, eax
jmp 0x42187b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x421891
mov edx, str._supplyid10077
lea edi, [esp + 0x14]
call fcn.00407740
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00410d40
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x290], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4218c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x290], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4218ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebp, ebp
mov edi, dword [0x4c57d4]
cmp edi, ebp
je 0x42198a
cmp dword [esp + 0x20], ebp
je 0x42198a
cmp dword [0x4c2214], ebp
jne 0x421923
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
cmp dword [0x4c2214], ebp
je 0x421917
lea ecx, [esp + 0x1c]
push 0x4c57e8
push ecx
mov ebx, 0x4a7198
call fcn.00412200
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.00406e10
test esi, esi
je 0x42198a
lea edx, [esp + 0x14]
push 0x4c57e8
push edx
mov ebx, 0x4a71b4
call fcn.00412200
mov dword [esp + 0x298], 2
mov eax, dword [eax]
push eax
mov ecx, 0x4a71b0
call fcn.00410d40
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00406e10
mov eax, edi
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0047cee5
add esp, 0x280
ret 8