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

Disassembly:
sub esp, 0xc4
mov eax, dword [0x100ef900]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
mov ebx, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd0]
push ebp
push esi
lea eax, [ebx + 0xa1]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], eax
lea eax, [ebx + 0xa5]
mov dword [esp + 0x30], eax
lea eax, [ebx + 0xa9]
mov dword [esp + 0x38], eax
lea eax, [ebx + 0xad]
mov dword [esp + 0x40], eax
lea eax, [ebx + 0xb9]
mov dword [esp + 0x48], eax
lea eax, [ebx + 0xbd]
mov dword [esp + 0x50], eax
lea eax, [ebx + 0xc1]
mov dword [esp + 0x58], eax
lea eax, [ebx + 0xb1]
mov dword [esp + 0x60], eax
lea eax, [ebx + 0xb5]
mov dword [esp + 0x68], eax
lea eax, [ebx + 0xc5]
mov dword [esp + 0x70], eax
lea eax, [ebx + 0xc9]
mov dword [esp + 0x78], eax
lea eax, [ebx + 0xcd]
mov dword [esp + 0x80], eax
lea eax, [ebx + 0xd1]
mov dword [esp + 0x88], eax
lea eax, [ebx + 0xd5]
mov dword [esp + 0x90], eax
lea eax, [ebx + 0xd9]
mov dword [esp + 0x98], eax
lea eax, [ebx + 0xed]
mov dword [esp + 0xa0], eax
lea eax, [ebx + 0xf1]
mov dword [esp + 0xa8], eax
lea eax, [ebx + 0xdd]
mov dword [esp + 0xb0], eax
lea eax, [ebx + 0xe1]
mov dword [esp + 0xb8], eax
lea eax, [ebx + 0xe5]
mov dword [esp + 0xc0], eax
lea eax, [ebx + 0xe9]
push 0x100ddae0
push ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], str.platform
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x100bca8c
mov dword [esp + 0x34], 0x100bca90
mov dword [esp + 0x3c], str.xyzu
mov dword [esp + 0x44], 0x100e0ba8
mov dword [esp + 0x4c], str.back
mov dword [esp + 0x54], str.start
mov dword [esp + 0x5c], str.guide
mov dword [esp + 0x64], str.leftshoulder
mov dword [esp + 0x6c], str.rightshoulder
mov dword [esp + 0x74], str.leftstick
mov dword [esp + 0x7c], str.rightstick
mov dword [esp + 0x84], str.dpup
mov dword [esp + 0x8c], str.dpright
mov dword [esp + 0x94], str.dpdown
mov dword [esp + 0x9c], str.dpleft
mov dword [esp + 0xa4], str.lefttrigger
mov dword [esp + 0xac], str.righttrigger
mov dword [esp + 0xb4], str.leftx
mov dword [esp + 0xbc], str.lefty
mov dword [esp + 0xc4], str.rightx
mov dword [esp + 0xcc], str.righty
mov dword [esp + 0xd0], eax
call fcn.100764c0
add esp, 8
cmp eax, 0x20
jne 0x1005a5bf
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x20], 0x2c
jne 0x1005a5bf
movups xmm0, xmmword [eax]
lea ebp, [ebx + 0x80]
push 0x100ddae0
movups xmmword [ebp], xmm0
mov dword [esp + 0x1c], ebp
movups xmm0, xmmword [eax + 0x10]
add eax, 0x21
push eax
movups xmmword [ebp + 0x10], xmm0
mov dword [esp + 0x14], eax
call fcn.100764c0
add esp, 8
cmp eax, 0x80
jae 0x1005a5bf
mov ecx, dword [esp + 0xc]
cmp byte [eax + ecx], 0x2c
lea esi, [eax + ecx]
jne 0x1005a5bf
push edi
push eax
push ecx
push ebx
call fcn.1006d5f0
lea ecx, [esi + 1]
add esp, 0xc
mov dword [esp + 0x10], ecx
mov al, byte [ecx]
test al, al
je 0x1005a53e
nop
cmp al, 0x2b
je 0x1005a5bb
cmp al, 0x2d
je 0x1005a5bb
xor edi, edi
lea ebx, [edi*8]
mov edx, dword [esp + ebx + 0x20]
mov esi, edx
lea ebp, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1005a3d2
sub esi, ebp
push esi
push edx
push ecx
call fcn.10079300
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x1005a3f7
cmp byte [esi + ecx], 0x3a
lea eax, [esi + ecx]
je 0x1005a402
inc edi
cmp edi, 0x16
jb 0x1005a3c2
jmp 0x1005a4ff
mov esi, dword [esp + ebx + 0x24]
lea ecx, [eax + 1]
mov dword [esp + 0x10], ecx
test esi, esi
je 0x1005a4e3
mov dl, byte [ecx]
mov byte [esp + 0x17], 0xff
mov byte [esp + 0x16], 1
cmp dl, 0x2b
jne 0x1005a42e
mov byte [esp + 0x17], 0
inc ecx
jmp 0x1005a43c
cmp dl, 0x2d
jne 0x1005a440
xor dl, dl
lea ecx, [eax + 2]
mov byte [esp + 0x16], dl
mov dword [esp + 0x10], ecx
mov al, byte [ecx]
cmp al, 0x61
jne 0x1005a44a
mov al, 1
jmp 0x1005a450
cmp al, 0x62
jne 0x1005a46b
mov al, 2
mov ecx, esi
push 0xa
mov byte [ecx], al
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x18]
inc eax
push eax
call fcn.1007a2cb
add esp, 0xc
jmp 0x1005a4a4
cmp al, 0x68
jne 0x1005a4ff
push 0xa
lea eax, [esp + 0x14]
mov byte [esi], 3
push eax
mov eax, dword [esp + 0x18]
inc eax
push eax
call fcn.1007a2cb
mov ecx, dword [esp + 0x1c]
mov ebx, eax
push 0xa
lea eax, [esp + 0x20]
inc ecx
push eax
push ecx
call fcn.1007a2cb
shl bl, 4
add esp, 0x18
or al, bl
mov byte [esi + 1], al
cmp byte [esi], 1
jne 0x1005a4fb
mov bl, byte [esp + 0x16]
movsx eax, byte [esp + 0x17]
movzx ecx, bl
sub ecx, eax
add bl, byte [esp + 0x17]
mov eax, 2
cdq
idiv ecx
mov cl, bl
neg cl
mov byte [esi + 2], al
mov byte [esi + 3], cl
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0x7e
jne 0x1005a4ff
neg al
mov byte [esi + 3], bl
mov byte [esi + 2], al
jmp 0x1005a4fb
push 7
push str.Windows
push ecx
call fcn.10079300
add esp, 0xc
test eax, eax
jne 0x1005a5bb
mov ecx, dword [esp + 0x10]
push 0x100ddae0
push ecx
call fcn.100764c0
mov ecx, dword [esp + 0x18]
add ecx, eax
push 0x100ddae0
push ecx
mov dword [esp + 0x20], ecx
call fcn.1007f3a0
mov ecx, dword [esp + 0x20]
add esp, 0x10
add ecx, eax
mov dword [esp + 0x10], ecx
mov al, byte [ecx]
test al, al
jne 0x1005a3b0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea ecx, [ebx + 0x81]
mov esi, 8
nop dword [eax]
mov dl, byte [ecx - 1]
lea eax, [edx - 0x41]
cmp al, 5
ja 0x1005a560
add dl, 0x20
mov byte [ecx - 1], dl
mov dl, byte [ecx]
lea eax, [edx - 0x41]
cmp al, 5
ja 0x1005a56e
add dl, 0x20
mov byte [ecx], dl
mov dl, byte [ecx + 1]
lea eax, [edx - 0x41]
cmp al, 5
ja 0x1005a57e
add dl, 0x20
mov byte [ecx + 1], dl
mov dl, byte [ecx + 2]
lea eax, [edx - 0x41]
cmp al, 5
ja 0x1005a58e
add dl, 0x20
mov byte [ecx + 2], dl
add ecx, 4
sub esi, 1
jne 0x1005a550
push ebp
call fcn.1005ea30
add esp, 4
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.1006bae9
add esp, 0xc4
ret
xor eax, eax
jmp 0x1005a5a2
push 0
push 0x10004
call fcn.1005b590
mov ecx, dword [esp + 0xd4]
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1006bae9
add esp, 0xc4
ret