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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [0x6cb1c544]
mov esi, dword [ebp + 8]
test eax, eax
je 0x6c980c40
mov dword [esp], eax
call fcn.6ca5ef20
xor edx, edx
test esi, esi
js 0x6c980c6a
xor ebx, ebx
mov edi, dword [ebx*4 + 0x6ca7fb28]
mov dword [esp + 0x14], edx
call dword [edi + 4]
cmp eax, esi
jg 0x6c980ca0
mov edx, dword [esp + 0x14]
add ebx, 1
sub esi, eax
add edx, eax
cmp ebx, 5
jne 0x6c980c48
mov dword [esp + 4], edx
mov dword [esp], str.There_are__d_joysticks_available
call fcn.6c942590
mov eax, dword [0x6cb1c544]
test eax, eax
je 0x6c980c8b
mov dword [esp], eax
call fcn.6ca5ef40
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [0x6cb1c54c]
mov dword [esp], esi
call dword [edi + 0x1c]
mov edx, eax
test ebx, ebx
jne 0x6c980cc2
jmp 0x6c980cf0
mov ebx, dword [ebx + 0x84]
test ebx, ebx
je 0x6c980cf0
cmp dword [ebx], edx
jne 0x6c980cb8
mov eax, dword [0x6cb1c544]
add dword [ebx + 0x80], 1
test eax, eax
je 0x6c980c8d
mov dword [esp], eax
call fcn.6ca5ef40
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 1
mov dword [esp], 0x88
mov dword [esp + 0x14], edx
call fcn.6c9d3a70
mov edx, dword [esp + 0x14]
test eax, eax
mov ebx, eax
je 0x6c980eff
mov dword [eax + 0x78], edi
mov dword [eax], edx
mov dword [eax + 0x68], 1
mov dword [eax + 0x74], 0xffffffff
call fcn.6c9dbfb0
mov dword [ebx + 0x64], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [edi + 0x20]
test eax, eax
js 0x6c980f1d
mov dword [esp], esi
call dword [edi + 0xc]
test eax, eax
je 0x6c980d55
mov dword [esp], eax
call fcn.6c9d8200
mov dword [ebx + 4], eax
lea eax, [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], esi
call dword [edi + 0x18]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x1c]
test eax, eax
jle 0x6c980d9c
mov dword [esp + 4], 0x18
mov dword [esp], eax
call fcn.6c9d3a70
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x24]
test eax, eax
jle 0x6c980db6
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.6c9d3a70
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
jle 0x6c980dd0
mov dword [esp + 4], 8
mov dword [esp], eax
call fcn.6c9d3a70
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x34]
test eax, eax
jle 0x6c980dea
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.6c9d3a70
mov dword [ebx + 0x38], eax
mov edx, dword [ebx + 0x1c]
test edx, edx
jle 0x6c980dfc
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x6c980ed9
mov eax, dword [ebx + 0x24]
test eax, eax
jle 0x6c980e0e
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x6c980ed9
mov eax, dword [ebx + 0x2c]
test eax, eax
jle 0x6c980e20
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x6c980ed9
mov ecx, dword [ebx + 0x34]
test ecx, ecx
jle 0x6c980e32
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x6c980ed9
movzx eax, word [ebx + 0xe]
or ax, word [ebx + 0x12]
or ax, word [ebx + 0x16]
movzx ecx, word [ebx + 0x10]
jne 0x6c980e90
movzx eax, word [ebx + 0x14]
shl ecx, 0x10
or eax, ecx
cmp edx, 2
je 0x6c980e64
cmp eax, 0xe8f3013
je 0x6c980e60
cmp eax, 0x5a03232
jne 0x6c980e95
test edx, edx
jle 0x6c980e95
xor edx, edx
xor eax, eax
lea esi, [esi]
nop
mov ecx, dword [ebx + 0x20]
add eax, 1
mov dword [ecx + edx + 8], 1
add edx, 0x18
cmp dword [ebx + 0x1c], eax
jg 0x6c980e70
jmp 0x6c980e95
cmp edx, 2
je 0x6c980e64
mov dword [esp], esi
call fcn.6c97e8d0
add dword [ebx + 0x80], 1
mov dword [ebx + 0x6c], eax
mov eax, dword [0x6cb1c54c]
mov dword [0x6cb1c54c], ebx
mov dword [ebx + 0x84], eax
mov eax, dword [0x6cb1c544]
test eax, eax
je 0x6c980ec9
mov dword [esp], eax
call fcn.6ca5ef40
mov dword [esp], ebx
call dword [edi + 0x3c]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
call fcn.6c942640
mov dword [esp], ebx
call fcn.6c9809b0
mov eax, dword [0x6cb1c544]
test eax, eax
jne 0x6c980c83
jmp 0x6c980c8b
mov dword [esp], 0
call fcn.6c942640
mov eax, dword [0x6cb1c544]
test eax, eax
jne 0x6c980cd6
jmp 0x6c980c8b
mov dword [esp], ebx
call fcn.6c9d3b40
mov eax, dword [0x6cb1c544]
test eax, eax
jne 0x6c980c83
jmp 0x6c980c8b