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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x10105018]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push edi
mov dword [esp + 0x14], ecx
mov esi, dword [0x101079ec]
test esi, esi
jne 0x10005c3a
push str.samp.dll
call ebx
mov esi, eax
mov dword [0x101079ec], esi
call fcn.10004960
sub eax, 2
imul ecx, eax, 0x5c
mov ecx, dword [ecx + 0x100f7d88]
cmp dword [esi + ecx], 0
je 0x10005c21
mov edx, 0x1000a120
mov ecx, str.alphachat
call fcn.10004b00
mov edx, 0x1000a3b0
mov ecx, 0x100f7914
call fcn.10004b00
mov ecx, dword [0x101079ec]
test ecx, ecx
jne 0x10005c88
push str.samp.dll
call ebx
mov ecx, eax
mov dword [0x101079ec], ecx
mov eax, dword [0x101079d8]
mov edi, ecx
cmp eax, 1
jg 0x10005cd6
test edi, edi
jne 0x10005ca7
push str.samp.dll
call ebx
mov ecx, eax
mov dword [0x101079ec], ecx
test ecx, ecx
jne 0x10005caf
xor eax, eax
jmp 0x10005cd6
mov eax, dword [ecx + 0x3c]
mov ecx, dword [eax + ecx + 0x28]
cmp ecx, 0xcc4d0
je 0x10005ccc
xor eax, eax
cmp ecx, 0x31df13
sete al
inc eax
jmp 0x10005cd1
mov eax, 3
mov dword [0x101079d8], eax
add eax, 0xfffffffe
imul eax, eax, 0x5c
mov esi, dword [eax + 0x100f7d84]
add esi, edi
call fcn.10004ba0
push str.alphachat
mov ecx, eax
call esi
mov esi, dword [esp + 0x14]
test eax, eax
setne cl
mov eax, dword [esi]
mov byte [eax], cl
call fcn.100049c0
mov ecx, dword [eax]
mov eax, dword [esi]
mov dword [eax + 0xc], ecx
mov eax, 0xc8d4c0
cmp dword [eax], 9
jne 0x10005d36
cmp dword [0x101079ec], 0
jne 0x10005e25
push str.samp.dll
call ebx
mov dword [0x101079ec], eax
test eax, eax
jne 0x10005e25
lea ecx, [esp + 0x28]
call fcn.10001b60
mov esi, dword [esp + 0x2c]
cmp esi, 0x7fffffff
jg 0x10005d64
mov ebx, dword [esp + 0x28]
jl 0x10005d59
cmp ebx, 0xfd050f7f
jae 0x10005d64
add ebx, 0x2faf080
adc esi, 0
jmp 0x10005d6c
or ebx, 0xffffffff
mov esi, 0x7fffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x18]
call fcn.10001b60
cmp dword [esp + 0x1c], esi
jg 0x10005e1a
jl 0x10005d93
cmp dword [esp + 0x18], ebx
jae 0x10005e1a
call fcn.100a7502
push 0
push 0x64
push edx
push eax
call fcn.100a9730
sub ebx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0xc]
mov edi, edx
sbb eax, dword [esp + 0x1c]
mov ecx, ebx
mov edx, eax
mov dword [esp + 0x24], eax
call fcn.100cd210
comisd xmm0, xmmword [0x100fcc50]
jbe 0x10005dd8
add esi, 0xad160000
adc edi, 0x311cd
jmp 0x10005dde
add esi, ebx
adc edi, dword [esp + 0x24]
push 0
push 0x3b9aca00
push edi
push esi
call fcn.100a9810
mov dword [esp + 0x60], eax
imul eax, eax, 0x3b9aca00
mov dword [esp + 0x64], edx
sub esi, eax
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x6c], esi
call fcn.100a8326
mov ebx, dword [esp + 0x14]
add esp, 4
mov esi, dword [esp + 0xc]
jmp 0x10005d74
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
jmp 0x10005d0b
mov eax, dword [0xc17054]
push 0xfffffffffffffffc
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
lea ecx, [esp + 0x5c]
add esi, 0x10
mov dword [esi + 0x28], eax
lea eax, [esi + 0x2c]
cmp eax, ecx
je 0x10005e60
mov ecx, dword [eax]
mov dword [eax], 0
test ecx, ecx
je 0x10005e60
push ecx
call fcn.100a8aca
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x100fc0f4
mov eax, ecx
mov dword [esp + 0x34], 0x10005f70
mov dword [esp + 0x54], ecx
cmp esi, eax
je 0x10005ed6
mov edi, dword [esi + 0x24]
test edi, edi
je 0x10005ea4
mov edx, dword [edi]
cmp edi, esi
mov ecx, edi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x24], 0
test ecx, ecx
je 0x10005ee1
lea eax, [esp + 0x30]
cmp ecx, eax
jne 0x10005ed1
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x24], eax
test ecx, ecx
je 0x10005ee1
mov edx, dword [ecx]
lea eax, [esp + 0x30]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x10005ee1
mov dword [esi + 0x24], ecx
jmp 0x10005ee1
push 0
lea ecx, [esp + 0x34]
call fcn.10010700
cmp byte [esi + 0x55], 0
jne 0x10005f54
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10005f54
push 0x1c
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [esp + 0x74]
cmp eax, 0x10
je 0x10005f16
cmp eax, 0x20
je 0x10005f16
cmp eax, 0x40
je 0x10005f16
cmp eax, 0x80
jne 0x10005f54
push ecx
mov ecx, dword [esi + 0x28]
lea edx, [esi + 0x3c]
call fcn.100046b0
add esp, 4
test al, al
je 0x10005f54
mov eax, dword [esi + 0x3c]
push dword [eax + 0x20]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x10005f54
push 1
mov ecx, esi
call fcn.1000c330
test al, al
je 0x10005f54
mov byte [esi + 0x55], 1
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100a8abc
mov esp, ebp
pop ebp
ret