Function at 0x5094e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x567c93
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x50]
cmp dword [esi + 4], 1
je 0x509534
mov eax, dword [esp + 0x64]
push 0x833
push str.parseJSONComputerState
push str._n_s:_d
push eax
call fcn.00408140
mov eax, 0x41
jmp 0x509906
push 0x571f58
push esi
call fcn.004fe690
add esp, 8
test eax, eax
jne 0x509550
push 0x837
jmp 0x5098ed
mov ecx, str.saveTask
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x509575
test dl, dl
je 0x509571
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x509575
add eax, 2
add ecx, 2
test dl, dl
jne 0x509555
xor eax, eax
jmp 0x50957a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x509597
mov edx, dword [esp + 0x64]
push 0x83a
push str.parseJSONComputerState
push str._n_s:_d
push edx
jmp 0x5098fc
push 0
push str.users
push esi
call fcn.004fe530
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x5098e8
cmp dword [eax + 4], 2
jne 0x5098e8
xor edi, edi
mov dword [esp + 0x18], edi
cmp dword [eax + 0x10], edi
jbe 0x509874
mov ebp, dword [esp + 0x4c]
mov eax, dword [eax + 0x14]
mov esi, dword [eax + edi*4]
push str.userId
push esi
call fcn.004fe690
add esp, 8
test eax, eax
je 0x5097bc
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x3c]
call fcn.00408de0
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push ebp
push ecx
mov dword [esp + 0x50], 0
call fcn.0049ea40
add esp, 0xc
test eax, eax
je 0x509621
push ebp
call fcn.005079d0
add esp, 4
push 2
push str.taskSets
push esi
call fcn.004fe530
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x5097c6
cmp dword [ebx + 0x10], 0
mov dword [esp + 0x14], 0
jbe 0x50977b
mov edi, dword [esp + 0x64]
mov edx, dword [ebx + 0x14]
mov eax, dword [esp + 0x14]
mov eax, dword [edx + eax*4]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push edi
push ebp
push 0
push ecx
mov ecx, dword [esp + 0x40]
push edx
push ecx
push eax
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x7c]
push eax
push 0
mov dword [esp + 0x78], 0
call fcn.00504180
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x509814
cmp dword [esp + 0x50], eax
je 0x509843
push 0x2e0
call fcn.0051a2f5
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x44], 1
test eax, eax
je 0x5096c9
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, eax
call fcn.004e1be0
mov esi, eax
jmp 0x5096cb
xor esi, esi
mov byte [esp + 0x44], 0
test esi, esi
je 0x50988a
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0x658]
push 0
push 0
push 0
push 0
push edx
push 0
push eax
push esi
call fcn.004e21c0
mov edi, eax
add esp, 0x20
test edi, edi
je 0x5098d2
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
call fcn.004de1f0
add esp, 4
test al, al
je 0x50973d
mov edx, dword [str.ARRIVED]
mov ecx, dword [edi]
push 0
push 0
push 1
push 0
push edx
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.004d07d0
add esp, 0x1c
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
push ebp
push ecx
push edx
push esi
call fcn.004c6290
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x509814
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [ebx + 0x10]
jb 0x50964d
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x2c], vtable.cWCS.0
call fcn.0049ee80
mov eax, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x18], edi
cmp edi, dword [eax + 0x10]
jb 0x5095d0
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push 0x845
jmp 0x5098ed
mov edx, dword [esp + 0x64]
push 0x85d
push str.parseJSONComputerState
push str._n_s:_d
push edx
call fcn.00408140
add esp, 0x10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x2c], vtable.cWCS.0
call fcn.0049ee80
mov eax, 0x40
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x2c], vtable.cWCS.0
call fcn.0049ee80
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push 0x869
push str.parseJSONComputerState
push str._n_s:_d
push edi
call fcn.00408140
add esp, 0x10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x2c], vtable.cWCS.0
call fcn.0049ee80
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push 0x86f
push str.parseJSONComputerState
push str._n_s:_d
push edi
call fcn.00408140
add esp, 0x10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x2c], vtable.cWCS.0
call fcn.0049ee80
or eax, 0xffffffff
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x64]
push 0x874
push str.parseJSONComputerState
push str._n_s:_d
push eax
jmp 0x50989a
push 0x83e
mov ecx, dword [esp + 0x68]
push str.parseJSONComputerState
push str._n_s:_d
push ecx
call fcn.00408140
mov eax, 0x40
add esp, 0x10
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret