Function at 0x419b10
Capabilities:
Check mutex on windows
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f08b2
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x51e584]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x51e584]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, edx
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x260], ebx
lea ecx, [esp + 0x60]
mov dword [esp + 0x5c], vtable.tpsp::TASKITEM.0
call fcn.004bdc40
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x94], ebx
mov eax, 1
xor ecx, ecx
mov dword [esp + 0x260], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
cmp dword [esi + 0x24], ebx
jle 0x419c79
mov edi, eax
cmp ecx, dword [esi + 0x24]
jl 0x419c2d
push 0x265
push str.D:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x40]
mov byte [esp + 0x33], bl
call fcn.0049a910
mov byte [esp + 0x260], 2
or dword [esp + 0x20], edi
push str.CHECK_failed:__index_____size___:
mov ecx, eax
call fcn.0049acd0
push eax
lea ecx, [esp + 0x2b]
call fcn.0049af20
mov dword [esp + 0x260], edi
test byte [esp + 0x20], 1
je 0x419c49
and dword [esp + 0x20], 0xfffffffe
lea ecx, [esp + 0x34]
call fcn.0049a940
mov edx, dword [esi + 0x20]
mov eax, dword [esp + 0x28]
mov eax, dword [edx + eax*4]
mov edi, dword [esp + 0x14]
push eax
call fcn.0041abe0
test eax, eax
je 0x419cb8
mov ecx, dword [esp + 0x28]
mov edi, 1
add ecx, edi
mov dword [esp + 0x28], ecx
cmp ecx, dword [esi + 0x24]
jl 0x419c2d
mov edi, dword [esp + 0x1c]
push 0x103
lea edx, [esp + 0x149]
push ebx
push edx
mov byte [esp + 0x150], bl
call fcn.00485960
add esp, 0xc
cmp dword [edi + 0x10], ebx
je 0x419d01
cmp dword [edi + 0x14], 0x10
jb 0x419ca3
mov edi, dword [edi]
push edi
push str.Tpsp_Charging_SingTask___s
push 0x104
lea eax, [esp + 0x150]
push eax
jmp 0x419d17
mov dword [esp + 0x5c], vtable.tpsp::TASKITEM.0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x260], 5
cmp ecx, dword [0x52621c]
je 0x419cea
mov ecx, dword [esp + 0x88]
cmp ecx, ebx
je 0x419cea
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00482828
mov byte [esp + 0x264], 3
jmp 0x41a567
mov eax, dword [esi + 0x30]
push eax
push str.Tpsp_Charging_SingTask___d
push 0x104
lea ecx, [esp + 0x150]
push ecx
call fcn.00482223
add esp, 0x10
lea edx, [esp + 0x144]
push edx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x419d63
cmp edi, ebx
je 0x419d4a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x260], 0xffffffff
call fcn.0042d2b0
jmp 0x41a587
mov eax, dword [esi + 0x30]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x5c]
push ecx
push eax
call fcn.0041c0f0
cmp eax, ebx
je 0x419db4
lea edx, [esp + 0x5c]
mov dword [esp + 0x2c], ebx
cmp esi, edx
je 0x419d9d
mov eax, dword [esp + 0x5c]
mov ecx, edx
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x5c]
call fcn.0042dcc0
lea ebx, [esp + 0x5c]
call fcn.00406610
lea edi, [eax + 8]
call fcn.004205a0
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov eax, 0xf
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
lea eax, [esp + 0x9c]
push eax
lea edx, [esp + 0xbc]
mov ecx, esi
mov byte [esp + 0x264], 7
call fcn.0040c290
mov eax, esi
mov dword [esp + 0x28], ebx
call fcn.004065f0
mov eax, dword [eax + 0xc]
cmp eax, ebx
jle 0x41a45b
mov eax, dword [esp + 0x18]
call fcn.004065f0
mov esi, dword [esp + 0x28]
lea edi, [eax + 8]
call fcn.00421580
push eax
lea ecx, [esp + 0xd8]
push ecx
call fcn.0042ec00
mov byte [esp + 0x260], 8
mov edx, dword [esp + 0x140]
shr edx, 0xa
test dl, 1
je 0x419f62
push str.kernel32
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x419e93
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x419e88
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov edx, str.Win64
cmp dword [esp + 0x20], ebx
jne 0x419e98
mov edx, 0x50db60
mov edi, 0xf
mov eax, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x419eb0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x3c]
call fcn.00402a70
mov byte [esp + 0x260], 9
mov eax, dword [esp + 0x130]
call fcn.00420d50
mov esi, 0x10
test al, al
je 0x419f47
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x419eef
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x134]
push ebx
push eax
call fcn.004029c0
cmp eax, 0xffffffff
jne 0x419f47
mov byte [esp + 0x260], 8
cmp dword [esp + 0x48], esi
jb 0x419f22
mov edx, dword [esp + 0x34]
push edx
call fcn.00481974
add esp, 4
lea ecx, [esp + 0xd4]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0x260], 7
call fcn.0042ecd0
jmp 0x41a440
mov byte [esp + 0x260], 8
cmp dword [esp + 0x48], esi
jb 0x419f62
mov eax, dword [esp + 0x34]
push eax
call fcn.00481974
add esp, 4
mov ecx, dword [esp + 0x140]
shr ecx, 0xb
test cl, 1
je 0x419ff8
lea esi, [esp + 0x34]
call fcn.0040f0d0
mov byte [esp + 0x260], 0xa
mov eax, dword [esp + 0x134]
call fcn.00420d50
test al, al
je 0x419fdc
mov eax, dword [esp + 0x134]
cmp dword [eax + 0x14], 0x10
jb 0x419fa5
mov eax, dword [eax]
push eax
call fcn.0040f330
add esp, 4
test al, al
jne 0x419fdc
lea ecx, [esp + 0x34]
mov byte [esp + 0x260], 8
call fcn.004db930
lea ecx, [esp + 0xd4]
mov byte [esp + 0x260], 7
call fcn.0042ecd0
jmp 0x41a440
mov byte [esp + 0x260], 8
cmp dword [esp + 0x48], 0x10
jb 0x419ff8
mov edx, dword [esp + 0x34]
push edx
call fcn.00481974
add esp, 4
mov eax, dword [esp + 0xe4]
cmp eax, ebx
jne 0x41a1a0
mov eax, dword [esp + 0x14]
push eax
lea ebx, [esp + 0xd8]
lea ecx, [esp + 0x60]
call fcn.004186c0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xe4]
xor esi, esi
cmp eax, esi
je 0x41a179
mov ecx, dword [ecx + 0x30]
push eax
mov eax, dword [esp + 0xe4]
push edx
push eax
push ecx
push str.TaskID__d__ResID__d_ResVer__d_failed___d__
call fcn.00406350
add esp, 0x14
push 5
mov edi, 0xf
push str.Break
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
call fcn.00402a70
lea ecx, [esp + 0x34]
mov byte [esp + 0x260], 0xb
mov edx, dword [esp + 0xec]
push ecx
push edx
call fcn.0040d250
add esp, 8
mov byte [esp + 0x260], 8
cmp dword [esp + 0x48], 0x10
mov bl, al
jb 0x41a0a9
mov eax, dword [esp + 0x34]
push eax
call fcn.00481974
add esp, 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], esi
mov byte [esp + 0x34], 0
test bl, bl
je 0x41a42a
mov ecx, dword [esp + 0x140]
shr ecx, 6
test cl, 1
je 0x41a0ed
mov ecx, dword [esp + 0xfc]
cmp ecx, esi
jne 0x41a0e1
mov edx, dword [0x526230]
mov ecx, dword [edx + 0x28]
mov eax, dword [esp + 0x14]
push 1
push eax
call fcn.0041b210
lea ecx, [esp + 0xd4]
mov byte [esp + 0x260], 7
call fcn.0042ecd0
mov ebx, 0x10
mov byte [esp + 0x260], 6
cmp dword [esp + 0xb0], ebx
jb 0x41a127
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00481974
add esp, 4
mov byte [esp + 0x260], 1
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], esi
mov byte [esp + 0x9c], 0
cmp dword [esp + 0xcc], ebx
jb 0x41a15e
mov edx, dword [esp + 0xb8]
push edx
call fcn.00481974
add esp, 4
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc8], esi
mov byte [esp + 0xb8], 0
jmp 0x419d4a
mov eax, dword [ecx + 0x30]
mov ecx, dword [esp + 0xe0]
push edx
push ecx
push eax
push str.TaskID__d__ResID__d_ResVer__d_started.
call fcn.00406350
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x2c], edx
jmp 0x41a402
cmp eax, 1
jne 0x41a2fb
mov eax, dword [esp + 0xe0]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [edi + 0xac]
call fcn.00443040
test byte [eax], 2
je 0x41a1e5
lea ecx, [esp + 0xd4]
mov byte [esp + 0x260], 7
call fcn.0042ecd0
jmp 0x41a440
push edi
lea ebx, [esp + 0xd8]
lea ecx, [esp + 0x60]
call fcn.004186c0
test eax, eax
je 0x41a2c3
mov edx, dword [esp + 0xe4]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x30]
push eax
mov eax, dword [esp + 0xe4]
push edx
push eax
push ecx
push str.TaskID__d__ResID__d_ResVer__d_failed___d__
call fcn.00406350
add esp, 0x14
push str.Break
lea ecx, [esp + 0x38]
call fcn.00402830
mov byte [esp + 0x260], 0xc
mov ecx, dword [esp + 0xec]
push eax
push ecx
call fcn.0040d250
add esp, 8
mov byte [esp + 0x260], 8
cmp dword [esp + 0x48], 0x10
mov bl, al
jb 0x41a269
mov edx, dword [esp + 0x34]
push edx
call fcn.00481974
add esp, 4
lea ecx, [esp + 0xd4]
test bl, bl
je 0x41a431
mov eax, dword [esp + 0x14]
push eax
call fcn.0041b1d0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x260], 7
call fcn.0042ecd0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x260], 6
call fcn.004db930
lea ecx, [esp + 0xb8]
mov byte [esp + 0x260], 1
call fcn.004db930
jmp 0x419d4a
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x30]
push ecx
push edx
push eax
push str.TaskID__d__ResID__d_ResVer__d_started.
call fcn.00406350
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x2c], eax
lea eax, [edi + 0xac]
jmp 0x41a40b
cmp dword [esp + 0x2c], ebx
je 0x41a31d
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0xd4]
lea edi, [esp + 0x5c]
call fcn.00419980
test eax, eax
je 0x41a42a
mov ecx, dword [esp + 0x14]
push ecx
lea ebx, [esp + 0xd8]
lea ecx, [esp + 0x60]
call fcn.004186c0
test eax, eax
je 0x41a3d5
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x30]
mov edx, dword [esp + 0xe0]
push eax
mov eax, dword [esp + 0xe8]
push eax
push edx
push ecx
push str.TaskID__d__ResID__d_ResVer__d_failed___d__
call fcn.00406350
add esp, 0x14
push 5
push str.Break
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.00402a70
lea eax, [esp + 0x34]
mov byte [esp + 0x260], 0xd
mov ecx, dword [esp + 0xec]
push eax
push ecx
call fcn.0040d250
add esp, 8
mov byte [esp + 0x260], 8
cmp dword [esp + 0x48], 0x10
mov bl, al
jb 0x41a3c0
mov edx, dword [esp + 0x34]
push edx
call fcn.00481974
add esp, 4
test bl, bl
je 0x41a42a
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0xd8]
jmp 0x41a27d
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x30]
push ecx
push edx
push eax
push str.TaskID__d__ResID__d_ResVer__d_started.
call fcn.00406350
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
add eax, 0xac
add esp, 0x10
lea edx, [esp + 0x1c]
call fcn.00443040
or dword [eax], 2
lea edx, [esp + 0xd4]
lea ecx, [esp + 0x5c]
call fcn.0041d630
lea ecx, [esp + 0xd4]
mov byte [esp + 0x260], 7
call fcn.0042ecd0
xor ebx, ebx
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
inc esi
mov dword [esp + 0x28], esi
call fcn.004065f0
cmp esi, dword [eax + 0xc]
jl 0x419e17
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x10]
mov ecx, esi
cmp esi, 6
jb 0x41a46e
mov ecx, 6
mov edi, 0x10
cmp dword [eax + 0x14], edi
jb 0x41a47a
mov eax, dword [eax]
push ecx
push 0x50dd20
push eax
call fcn.00402790
add esp, 0xc
cmp eax, ebx
jne 0x41a4a1
cmp esi, 6
jae 0x41a497
or eax, 0xffffffff
jmp 0x41a49f
xor eax, eax
cmp esi, 6
setne al
cmp eax, ebx
sete al
cmp al, bl
je 0x41a4b6
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x5c]
push edx
call fcn.0041d410
mov byte [esp + 0x260], 6
cmp dword [esp + 0xb0], edi
jb 0x41a4d7
mov eax, dword [esp + 0x9c]
push eax
call fcn.00481974
add esp, 4
mov esi, 0xf
mov byte [esp + 0x260], 1
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
cmp dword [esp + 0xcc], edi
jb 0x41a512
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.00481974
add esp, 4
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
mov dword [esp + 0x5c], vtable.tpsp::TASKITEM.0
lea edx, [esp + 0x5c]
mov dword [esp + 0x260], edi
cmp edx, dword [0x52621c]
je 0x41a555
mov ecx, dword [esp + 0x88]
cmp ecx, ebx
je 0x41a555
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esp + 0x7c]
push eax
call fcn.00482828
mov byte [esp + 0x264], 0xe
add esp, 4
lea ecx, [esp + 0x60]
call fcn.004bdff0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x260], 0xffffffff
call fcn.0049bad0
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004815c9
mov esp, ebp
pop ebp
ret 8