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

Disassembly:
sub esp, 0x3ac
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x3a8], eax
mov eax, dword [esp + 0x3b0]
push ebx
mov ebx, dword [esp + 0x3c4]
push ebp
push esi
push edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c4]
push 0x73d8
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ebx
call fcn.105116ce
mov edx, dword [esp + 0x20]
lea edi, [esp + 0x8c]
push dword [esp + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
push dword [esp + 0x28]
mov byte [ebx + 1], dl
movzx ecx, al
movzx edx, dl
imul edx, ecx
mov ecx, 0xcc
mov byte [ebx], al
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov byte [ebx + 2], 1
mov byte [ebx + 3], dl
call fcn.10501a50
mov dword [esp + 0x54], eax
lea edi, [ebx + 0xac6ff0]
or eax, 0xffffffff
mov ecx, 0x400
rep stosd dword es:[edi], eax
movzx eax, byte [esp + 0x3d4]
xor edx, edx
xor esi, esi
mov dword [esp + 0x24], edx
xor eax, 1
mov dword [esp + 0x44], esi
add esp, 0xc
xorps xmm0, xmm0
add eax, 3
mov ebp, edx
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x64], eax
movups xmmword [esp + 0x78], xmm0
mov dword [esp + 0x34], ebp
je 0x104ffe56
mov ecx, 0xffff
nop word [eax + eax]
lea eax, [ebx + 0xac6ff0]
xor edi, edi
mov dword [esp + 0x14], eax
lea eax, [esi + esi*2]
lea eax, [eax*2 + 0x41]
mov dword [esp + 0x44], edi
add eax, ebx
mov dword [esp + 0x3c], eax
imul eax, esi, 0x1fb60
mov esi, dword [esp + 0x14]
add eax, 0x250
add eax, ebx
mov dword [esp + 0x28], eax
lea eax, [edx + edx*2]
lea eax, [eax*2 + 0xac7ff5]
add eax, ebx
mov dword [esp + 0x40], eax
cmp word [esi], cx
jne 0x104ffe2f
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x60]
push eax
push edi
call fcn.10500550
add esp, 0x18
test al, al
je 0x104ffe26
mov esi, dword [esp + 0x50]
cmp esi, dword [esp + 0x20]
ja 0x104ffe22
mov ecx, dword [esp + 0x54]
cmp ecx, dword [esp + 0x1c]
ja 0x104ffe22
mov al, byte [esp + 0x13]
cmp ebp, 1
ja 0x104ffe11
test al, al
jne 0x104ffe22
cmp ebp, 2
jne 0x104fff25
test al, al
jne 0x104fff29
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xffff
inc edi
add esi, 2
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], esi
cmp edi, 0x800
jb 0x104ffdc5
mov esi, dword [esp + 0x38]
inc ebp
mov dword [esp + 0x34], ebp
cmp ebp, dword [esp + 0x64]
jb 0x104ffd80
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
push dword [esp + 0x48]
mov dword [ebx + 0x10], esi
lea eax, [edx + esi]
mov dword [ebx + 0x14], eax
lea eax, [ecx + edx]
add eax, esi
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x78]
add eax, ecx
mov ecx, dword [esp + 0x80]
add eax, edx
mov edx, dword [esp + 0x84]
add eax, esi
mov esi, dword [esp + 0x7c]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 4], esi
lea eax, [ecx + edx]
add eax, esi
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x88]
add eax, ecx
add eax, edx
add eax, esi
mov dword [ebx + 0xc], eax
call fcn.10512d15
mov edx, dword [ebx + 0xc]
add esp, 4
cmp edx, 0x57
jae 0x104ffef5
lea eax, [edx + edx*2]
mov ecx, 0x57
lea eax, [eax*2 + 0x41]
add eax, ebx
sub ecx, edx
nop dword [eax]
nop dword [eax + eax]
xor edx, edx
mov dword [eax - 1], 0xffff
mov word [eax + 3], dx
lea eax, [eax + 6]
sub ecx, 1
jne 0x104ffee0
push ebx
call fcn.104ffbb0
push 0x73d8
push dword [esp + 0x54]
call fcn.10511703
mov ecx, dword [esp + 0x3c4]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x3ac
ret
test al, al
je 0x104fff30
mov eax, 0x6d
jmp 0x104fff35
mov eax, 0x6f
sub eax, dword [esp + 0x2c]
je 0x104ffe22
mov eax, dword [esp + 0x48]
movss xmm0, dword [eax + edi*4]
test ebp, ebp
jne 0x104fff57
xorps xmm1, xmm1
comiss xmm1, xmm0
setae al
jmp 0x104fff6b
movss xmm1, dword [esp + 0x3cc]
comiss xmm1, xmm0
setae al
cmp ebp, 3
je 0x104fff73
test al, al
je 0x104ffe22
mov ebp, ecx
shl ebp, 4
add ebp, esi
mov dword [esp + 0x5c], ebp
mov edx, dword [esp + ebp*4 + 0x88]
test edx, edx
jns 0x10500044
push dword [esp + 0x4c]
mov eax, esi
push dword [esp + 0x2c]
imul eax, ecx
push ecx
push esi
push dword [esp + 0x2c]
push dword [esp + 0x34]
mov dword [esp + 0x70], eax
lea edi, [eax + eax]
call fcn.105009c0
mov ebp, dword [esp + 0x70]
add esp, 0x18
or ebx, 0xffffffff
mov dword [esp + 0x24], 0xffffffff
xor esi, esi
push esi
push ebp
call fcn.10506ec0
add eax, 0xffffffe8
add esp, 8
cmp eax, 0x48
mov ecx, esi
cmova ecx, dword [esp + 0x24]
mov eax, ecx
mov dword [esp + 0x24], eax
cmp edi, 0x40
ja 0x104ffffd
push esi
push edi
call fcn.10506ec0
add eax, 0xffffffe8
add esp, 8
cmp eax, 0x48
mov eax, dword [esp + 0x24]
cmovbe ebx, esi
inc esi
cmp esi, 0xc
jl 0x104fffc4
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x5c]
add dword [esp + 0x28], 0x1fb60
mov edi, dword [esp + 0x44]
mov byte [ecx - 1], al
xor eax, eax
mov dword [ecx + 1], eax
mov eax, dword [esp + 0x38]
mov edx, eax
mov dword [esp + ebp*4 + 0x88], eax
inc eax
mov ebp, dword [esp + 0x34]
mov byte [ecx], bl
mov dword [esp + 0x38], eax
inc dword [esp + ebp*4 + 0x78]
add ecx, 6
mov dword [esp + 0x3c], ecx
jmp 0x10500048
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x40]
mov ah, byte [esp + 0x13]
mov ebx, dword [esp + 0x60]
mov al, ah
and al, 1
mov cl, byte [esi]
and cl, 0xfe
mov byte [esi - 3], dl
or cl, al
mov byte [esi - 2], bl
mov byte [esi], cl
lea edx, [edx + edx*2]
mov ecx, dword [esp + 0x2c]
mov byte [esi - 1], cl
mov word [esi - 5], di
test ah, ah
je 0x10500090
movzx eax, bl
mov ebx, dword [esp + 0x30]
mov cx, word [ebx + edx*2 + 0x44]
bts cx, ax
mov word [ebx + edx*2 + 0x44], cx
jmp 0x105000a8
mov eax, dword [esp + 0x30]
movzx ecx, word [eax + edx*2 + 0x42]
movzx eax, bl
mov ebx, dword [esp + 0x30]
bts ecx, eax
mov word [ebx + edx*2 + 0x42], cx
mov eax, dword [esp + 0x14]
add esi, 6
mov edx, dword [esp + 0x18]
mov dword [esp + 0x40], esi
mov esi, eax
mov word [eax], dx
inc edx
inc dword [esp + ebp*4 + 0x68]
mov dword [esp + 0x18], edx
jmp 0x104ffe2a