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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
sub esp, 8
mov eax, esp
mov ecx, dword [edi + 0xc]
mov byte [edi + 4], 0
mov dword [eax], str.dev.settings
mov dword [eax + 4], 0xc
call fcn.00481e10
mov ebx, dword [edi + 0xc]
mov ecx, str.plr.cpurandom
test al, al
mov byte [esp + 0xf], al
mov edx, str.dev.cpurandom
cmove edx, ecx
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5b18f7
sub ecx, esi
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [ebx + 4]
call fcn.004e6570
cmp eax, dword [ebx + 4]
je 0x5b191f
lea esi, [eax + 0x28]
jmp 0x5b1939
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 0xc]
call fcn.004e6570
lea esi, [eax + 0x28]
cmp eax, dword [ebx + 0xc]
jne 0x5b1939
mov esi, 0x8cdf48
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x5b1943
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
sub esp, 8
mov eax, esp
push ecx
push edx
mov dword [eax], 0x823be0
mov dword [eax + 4], 1
call fcn.004bc840
add esp, 0x10
mov dword [esp + 0x10], 0x1b0963
lea ebx, [edi + 8]
test al, al
je 0x5b198d
mov eax, dword [ebx]
xor edx, edx
mov ecx, dword [eax + 4]
imul eax, dword [ecx + 4], 0x970
add eax, 0x5b6a9
div dword [esp + 0x10]
mov dword [ecx + 4], edx
jmp 0x5b1992
mov edx, 0xfd
mov byte [edi + 0x13], dl
mov edx, esi
cmp dword [esi + 0x14], 0xf
jbe 0x5b19a8
mov edx, dword [esi]
lea eax, [edi + 8]
mov dword [esp + 0x10], eax
jmp 0x5b19ac
mov dword [esp + 0x10], ebx
mov ecx, dword [esi + 0x10]
sub esp, 8
mov eax, esp
push ecx
push edx
mov dword [eax], 0x81a5c8
mov dword [eax + 4], 1
call fcn.004bc840
add esp, 0x10
xor edx, edx
test al, al
je 0x5b19ee
mov eax, dword [ebx]
mov ebx, 0x1b0963
mov ecx, dword [eax + 4]
imul eax, dword [ecx + 4], 0x970
add eax, 0x5b6a9
div ebx
mov dword [ecx + 4], edx
jmp 0x5b19f3
mov ebx, 0x1b0963
mov byte [edi + 0x10], dl
mov edx, esi
cmp dword [esi + 0x14], 0xf
jbe 0x5b1a00
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
sub esp, 8
mov eax, esp
push ecx
push edx
mov dword [eax], 0x807c6c
mov dword [eax + 4], 1
call fcn.004bc840
add esp, 0x10
xor edx, edx
test al, al
je 0x5b1a3f
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
imul eax, dword [ecx + 4], 0x970
add eax, 0x5b6a9
div ebx
mov dword [ecx + 4], edx
mov byte [edi + 0x11], dl
mov edx, esi
cmp dword [esi + 0x14], 0xf
jbe 0x5b1a4c
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
sub esp, 8
mov eax, esp
push ecx
push edx
mov dword [eax], 0x807c70
mov dword [eax + 4], 1
call fcn.004bc840
add esp, 0x10
xor edx, edx
test al, al
je 0x5b1a88
mov eax, dword [edi + 8]
mov ecx, dword [eax + 4]
imul eax, dword [ecx + 4], 0x970
add eax, 0x5b6a9
div ebx
mov dword [ecx + 4], edx
mov byte [edi + 0x12], dl
mov edx, esi
cmp dword [esi + 0x14], 0xf
jbe 0x5b1a95
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
sub esp, 8
mov eax, esp
push ecx
push edx
mov dword [eax], 0x823bdc
mov dword [eax + 4], 1
call fcn.004bc840
add esp, 0x10
test al, al
je 0x5b1ad3
mov eax, dword [edi + 8]
xor edx, edx
mov ecx, dword [eax + 4]
imul eax, dword [ecx + 4], 0x970
add eax, 0x5b6a9
div ebx
mov dword [ecx + 4], edx
jmp 0x5b1ad8
mov edx, 0x20
mov al, dl
mov esi, dword [edi + 8]
shr al, 7
mov ecx, 0xe000
mov byte [edi + 0x18], al
mov al, dl
shr al, 6
and al, 1
mov byte [edi + 0x1a], 1
mov byte [edi + 0x19], al
mov al, dl
shr al, 3
and al, 1
mov byte [edi + 0x1f], 0
mov byte [edi + 0x1b], al
mov al, dl
shr al, 2
and al, 1
mov byte [edi + 0x1c], al
mov al, dl
shr al, 1
and dl, 1
not al
mov byte [edi + 0x1e], dl
and al, 1
mov byte [edi + 0x1d], al
mov eax, dword [esi + 0xe14]
test eax, eax
je 0x5b1b2f
or word [eax + 0x7a], cx
jmp 0x5b1b41
mov ecx, dword [esi + 0xe20]
push 0
push 0xfffd
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [esi + 0xe0c]
test eax, eax
je 0x5b1b50
mov al, byte [eax + 0x3d]
jmp 0x5b1b62
mov ecx, dword [esi + 0xe20]
push 0xfffd
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
cmp byte [esi + 0xea9], 0
mov byte [esp + 0xe], al
jne 0x5b1b75
mov byte [esi + 0xea8], al
mov eax, dword [esi + 0xe14]
test eax, eax
je 0x5b1b8a
mov ecx, 0xe000
or word [eax + 0x78], cx
jmp 0x5b1b9c
mov ecx, dword [esi + 0xe20]
push 0
push 0xfffc
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [esi + 0xe0c]
test eax, eax
je 0x5b1bab
mov al, byte [eax + 0x3c]
jmp 0x5b1bbd
mov ecx, dword [esi + 0xe20]
push 0xfffc
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
cmp byte [esi + 0xea9], 0
jne 0x5b1bcc
mov byte [esi + 0xea8], al
movzx ecx, byte [esp + 0xe]
sub esp, 8
movzx eax, al
shl cx, 8
or cx, ax
mov dword [edi + 0x48], 0xffffffff
xor eax, eax
mov word [edi + 0x16], cx
mov ecx, dword [edi + 0xc]
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], eax
mov word [edi + 0x24], ax
mov word [edi + 0x4c], ax
mov word [edi + 0x38], ax
mov byte [edi + 0x78], al
mov eax, esp
mov dword [edi + 0x44], 0xffffffff
mov dword [edi + 0x40], 0xffffffff
mov dword [edi + 0x3c], 0xffffffff
mov dword [eax], str.dbg.ghostreadstrap
mov dword [eax + 4], 0x12
call fcn.00481e10
cmp byte [esp + 0xf], 0
mov byte [edi + 0x20130], al
je 0x5b1c75
mov ecx, dword [edi + 0xc]
sub esp, 8
mov eax, esp
mov dword [eax], str.dev.rwportbreak
mov dword [eax + 4], 0xf
call fcn.00481e10
mov ecx, dword [edi + 0xc]
sub esp, 8
mov byte [edi + 0x20131], al
mov eax, esp
mov dword [eax], str.dev.wrportbreak
mov dword [eax + 4], 0xf
call fcn.00481e10
jmp 0x5b1c7e
mov byte [edi + 0x20131], 0
xor al, al
mov ecx, dword [edi + 0xc]
sub esp, 8
mov byte [edi + 0x20132], al
mov eax, esp
mov dword [eax], str.dbg.logbreaks
mov dword [eax + 4], 0xd
call fcn.00481e10
mov ecx, dword [edi + 0xc]
sub esp, 8
mov byte [edi + 0x20134], al
mov eax, esp
mov dword [eax], str.dbg.logtrace
mov dword [eax + 4], 0xc
call fcn.00481e10
mov byte [edi + 0x20135], al
mov dword [edi + 0x28], 0xffffffff
mov dword [edi + 0x2c], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret