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

Disassembly:
sub esp, 0x54
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x60]
mov eax, edx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x68]
mov ebx, edx
push edi
mov edi, ecx
shr eax, 8
mov ecx, dword [esp + 0x68]
mov ebp, edx
shr ebx, 0xa
and ebp, 0x600
and eax, 0xffffff01
mov dword [esp + 0x20], esi
and bl, 1
mov dword [edi + 8], 0
mov dword [edi + 0xc], ecx
mov word [edi + 0x10], dx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
test esi, esi
jne 0x104a8113
xor eax, eax
cmp ax, bp
jne 0x104a8113
mov al, 1
jmp 0x104a8115
xor al, al
mov dword [esp + 0x48], ecx
mov esi, 0x80
movzx ecx, byte [esp + 0x78]
mov byte [esp + 0x13], al
xor ecx, 1
mov byte [edi + 0x12], al
inc ecx
xor eax, eax
mov dword [esp + 0x1c], 0
cmp word [esp + 0x1c], bp
mov dword [esp + 0x5c], 0
cmovne eax, esi
or ecx, eax
mov eax, dword [esp + 0x18]
movzx eax, al
shl eax, 3
or ecx, eax
movzx eax, bl
shl eax, 4
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], eax
test bl, bl
je 0x104a8170
lea ebx, [esi - 0x7d]
lea ebp, [esi - 0x70]
jmp 0x104a81cb
movzx esi, dx
mov ebp, esi
and ebp, 0xf
jne 0x104a81a8
cmp byte [esp + 0x78], 0
je 0x104a8189
lea ebx, [ebp + 2]
lea ebp, [ebx + 0xe]
jmp 0x104a81cb
and edx, 0x1000
xor eax, eax
cmp ax, dx
jne 0x104a819e
lea ebx, [eax + 0x39]
lea ebp, [eax + 2]
jmp 0x104a81cb
mov ebx, 0x2a
lea ebp, [ebx - 0x26]
jmp 0x104a81cb
shr esi, 4
xor ecx, ecx
and esi, 3
lea eax, [esi - 1]
cmp eax, esi
cmovbe ecx, eax
lea eax, [ecx + ebp*4]
shl ebp, 4
mov ebx, dword [eax*4 + 0x10a2ffb8]
mov ebp, dword [ebp + 0x10a2ffc4]
mov eax, dword [0x10af3278]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0
mov esi, dword [eax + 0x280]
xor eax, eax
mov dword [esp + 0x44], 0
push edi
cmp ax, word [esp + 0x18]
je 0x104a8262
mov dword [esp + 0x50], eax
test edx, edx
mov dword [esp + 0x58], eax
movzx eax, word [esp + 0x78]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x40]
mov ecx, dword [esi]
mov dword [esp + 0x18], 0
cmove eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x50]
push eax
push esi
call dword [ecx + 0xc]
mov eax, dword [edi + 0xc]
xor edx, edx
div ebp
mov ecx, dword [esi]
mov dword [esp + 0x30], eax
lea eax, [edi + 8]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], ebx
push eax
push dword [edi]
mov dword [esp + 0x34], 1
push esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
call dword [ecx + 0x20]
jmp 0x104a8298
cmp byte [esp + 0x17], al
je 0x104a827c
mov dword [esp + 0x50], 2
mov dword [esp + 0x58], 0x10000
push 0
jmp 0x104a828d
lea ecx, [esp + 0x40]
mov dword [esp + 0x50], 1
mov dword [esp + 0x58], eax
push ecx
mov eax, dword [esi]
lea ecx, [esp + 0x50]
push ecx
push esi
call dword [eax + 0xc]
cmp byte [esp + 0x18], 0
je 0x104a82cf
mov eax, dword [edi + 0xc]
xor edx, edx
div ebp
mov ecx, dword [esi]
mov dword [esp + 0x30], eax
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], ebx
push eax
push dword [edi]
mov dword [esp + 0x34], 1
push esi
mov dword [esp + 0x3c], 0
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x54
ret 0x14