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

Disassembly:
sub esp, 0xa00
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x9fc], eax
mov eax, dword [esp + 0xa14]
mov edx, ecx
push ebx
mov ebx, dword [esp + 0xa08]
push ebp
mov ecx, dword [edx + 0x1914]
push esi
mov esi, dword [esp + 0xa18]
push edi
mov edi, dword [esp + 0xa18]
mov dword [esp + 0x74], eax
mov eax, dword [edx + 0x1910]
mov dword [esp + 0x8c], eax
lea eax, [edi + 0x250]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x98], eax
lea eax, [esp + 0x84]
push ebx
push eax
push dword [edx + 0x1904]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x90], 0x22
mov dword [esp + 0x94], 0
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 1
call dword [0x10ac2d70]
push 0x660
lea eax, [esp + 0x230]
push 0
push eax
call fcn.10513d40
lea eax, [esp + 0x260]
mov dword [esp + 0x68], 0x10
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x23c]
lea eax, [esp + 0x25c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
xor ebp, ebp
lea eax, [esp + 0x258]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x30], eax
add esp, 0xc
lea eax, [esp + 0x88c]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], eax
add esi, 4
lea eax, [esp + 0x248]
add edi, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x244]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x240]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x23c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x234]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x22c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x894]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x89c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x60], eax
nop dword [eax]
movzx edx, word [esi]
mov eax, edx
mov dword [esp + 0x50], eax
mov eax, 0xffff
cmp ax, dx
je case.default.0x104bb164
cmp ax, word [edi - 8]
je case.default.0x104bb164
mov al, byte [esi + 2]
mov byte [esp + 0x47], al
movzx eax, al
cmp eax, 3
ja case.default.0x104bb164
jmp dword [eax*4 + 0x104bb860]
mov eax, dword [esp + 0x10]
mov dword [ecx], 0
mov ecx, dword [ebx + 4]
mov dword [eax], 0x23
mov eax, dword [ebx]
mov ebx, dword [esp + 0x14]
mov dword [ebx], eax
mov eax, ebx
mov ebx, dword [edi + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
mov dword [eax], 1
mov eax, dword [edi - 4]
dec eax
neg eax
sbb eax, eax
add eax, 3
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
mov dword [eax], 0
mov eax, dword [esp + 0x30]
mov dword [eax], 0
mov eax, dword [esp + 0x28]
mov dword [eax], 0
mov eax, edx
imul eax, eax, 0x98
add eax, ecx
mov dword [esp + 0x50], eax
mov eax, dword [eax + 0x1293d8]
mov dword [esp + 0x40], eax
cmp ebx, 0xffffffff
je 0x104bb20b
mov eax, dword [esp + 0x58]
mov eax, dword [eax + ebx*4 + 0x148]
mov dword [esp + 0x40], eax
jmp 0x104bb21d
cmp eax, 3
je 0x104bb215
cmp eax, 6
jne 0x104bb21d
mov dword [esp + 0x40], 5
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
push 0
push dword [esp + 0x44]
mov eax, dword [eax + 0x129424]
mov dword [ebx], eax
movzx eax, byte [esi + 5]
mov ebx, dword [esp + 0x44]
push 1
push eax
mov word [esp + 0x80], dx
lea eax, [esp + 0xac]
push dword [esp + 0x80]
mov dword [ebx], 0
push eax
mov dword [ebx + 4], 0
call fcn.104ba8d0
mov edx, dword [esp + 0x54]
inc ebp
add dword [esp + 0x48], 0x18
add dword [esp + 0x10], 0x30
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add dword [esp + 0x34], 0x30
add dword [esp + 0x14], 0x30
add dword [esp + 0x2c], 0x30
add dword [esp + 0x18], 0x30
add dword [esp + 0x1c], 0x30
add dword [esp + 0x20], 0x30
add dword [esp + 0x30], 0x30
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 4], eax
add edx, 0x18
mov dword [esp + 0x54], edx
mov dword [ecx], ebx
add ebx, 0x18
add ecx, 0x30
mov dword [esp + 0x3c], ebx
add dword [esp + 0x28], 0x30
mov dword [esp + 0x24], ecx
jmp 0x104bb5fc
cmp byte [esp + 0x47], 2
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [ecx], 0
mov ecx, dword [ebx + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax], 0x23
mov eax, dword [ebx]
mov dword [edx], eax
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
mov dword [eax], 1
mov eax, dword [esp + 0x20]
mov dword [eax], 7
mov eax, dword [esp + 0x24]
mov dword [eax], 0
mov eax, dword [esp + 0x30]
mov dword [eax], 0
mov eax, dword [esp + 0x28]
mov dword [eax], 0
mov eax, dword [esp + 0x50]
movzx ecx, ax
jne 0x104bb349
mov edx, dword [esp + 0x4c]
shl ecx, 5
add edx, 0x213a8
add edx, ecx
jmp 0x104bb359
add ecx, 0x627
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x4c]
lea edx, [ecx + eax*8]
mov eax, dword [edx]
inc ebp
mov ecx, dword [edx + 4]
mov ebx, dword [esp + 0x60]
add dword [esp + 0x10], 0x30
add dword [esp + 0x14], 0x30
add dword [esp + 0x2c], 0x30
add dword [esp + 0x18], 0x30
add dword [esp + 0x1c], 0x30
add dword [esp + 0x20], 0x30
add dword [esp + 0x24], 0x30
mov dword [ebx], eax
mov eax, ebx
mov dword [esp + 0x40], ebp
mov dword [eax + 4], ecx
mov ecx, ebx
mov ebx, dword [esp + 0x68]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [edx + 0x10]
mov edx, dword [esp + 0x38]
mov dword [ecx + 0x10], eax
inc edx
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x14], 0
mov dword [esp + 0x38], edx
mov dword [eax], ecx
add ecx, 0x18
mov dword [esp + 0x60], ecx
add eax, 0x30
mov ecx, dword [esp + 0x34]
add ecx, 0x30
mov dword [esp + 0x30], eax
add dword [esp + 0x28], 0x30
mov dword [esp + 0x34], ecx
jmp 0x104bb60c
mov ecx, dword [esp + 0x4c]
mov eax, edx
mov edx, dword [esi - 4]
imul eax, eax, 0x98
add eax, ecx
mov dword [esp + 0x64], eax
test edx, 0x10000000
je 0x104bb407
mov edx, dword [eax + 0x1293b0]
push dword [esp + 0x74]
mov eax, edx
shr eax, 0x14
and al, 1
mov byte [esp + 0x7c], al
mov eax, dword [esp + 0x68]
push dword [eax + 0x1293dc]
lea eax, [esp + 0x84]
push edx
push eax
call fcn.104be0b0
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x64]
cmp ecx, 0xffffffff
jne 0x104bb442
mov eax, dword [edx + 0x1293d8]
jmp 0x104bb44d
mov eax, dword [esp + 0x58]
mov eax, dword [eax + ecx*4 + 0x148]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x3c]
push dword [esp + 0x78]
mov dword [esp + 0x54], eax
mov eax, dword [edx + 0x129424]
push dword [esp + 0x54]
mov dword [ecx], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov dword [ebp], eax
mov eax, ebp
mov dword [eax + 4], ecx
movzx ecx, byte [edx + 0x1293ce]
mov ax, word [esi]
push ecx
mov ecx, dword [esp + 0x58]
mov word [esp + 0x78], ax
lea eax, [esp + 0xb0]
push 0
push dword [esp + 0x7c]
push eax
call fcn.104ba8d0
mov edx, dword [esp + 0x54]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov ebx, dword [esp + 0x2c]
mov dword [eax], 0x23
mov eax, dword [esp + 0x34]
add dword [esp + 0x10], 0x30
add dword [esp + 0x34], 0x30
mov dword [eax], 0
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [edi]
mov dword [ebx], eax
add ebx, 0x30
mov eax, dword [esp + 0x18]
add dword [esp + 0x18], 0x30
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
add dword [esp + 0x1c], 0x30
mov dword [eax], 1
mov eax, dword [esp + 0x20]
add dword [esp + 0x20], 0x30
mov dword [eax], 2
mov eax, dword [esp + 0x24]
add dword [esp + 0x24], 0x30
mov dword [eax], ebp
mov eax, dword [esp + 0x30]
add dword [esp + 0x30], 0x30
mov dword [eax], 0
mov eax, dword [esp + 0x28]
mov dword [eax], 0
mov eax, dword [esp + 0x14]
add eax, 0x30
mov dword [ebx], 0x23
mov ebx, dword [esp + 0x34]
add dword [esp + 0x28], 0x30
mov dword [esp + 0x14], eax
mov dword [eax], ecx
mov ecx, eax
mov eax, dword [edi + 4]
mov dword [ebx], 0
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [edx], eax
mov eax, dword [esp + 0x18]
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
mov dword [eax], 1
mov eax, dword [esp + 0x20]
mov dword [eax], 0
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], 0x30
mov edx, ebp
mov ebp, dword [esp + 0x40]
add ebx, 0x30
add dword [esp + 0x2c], 0x30
add ecx, 0x30
add dword [esp + 0x18], 0x30
add ebp, 2
add dword [esp + 0x1c], 0x30
add dword [esp + 0x20], 0x30
add dword [esp + 0x24], 0x30
add dword [esp + 0x48], 0x18
add dword [esp + 0x54], 0x18
mov dword [eax], edx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
add dword [esp + 0x28], 0x30
mov dword [esp + 0x34], ebx
mov dword [eax], 0
add eax, 0x30
add dword [esp + 0x3c], 0x18
mov dword [edx], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x40], ebp
mov edx, dword [esp + 0x38]
add esi, 0xc
add edi, 0x14
sub dword [esp + 0x5c], 1
jne 0x104bb130
mov esi, dword [esp + 0x58]
mov eax, dword [esi]
movzx ecx, word [eax + 0xb2]
mov eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x104bb644
movzx eax, word [eax + 0xb2]
mov dword [esp + 0x5c], eax
jmp 0x104bb64c
mov dword [esp + 0x5c], 0
test cx, cx
je 0x104bb72c
mov ecx, dword [esp + 0xa20]
lea esi, [edx + edx*2]
shl esi, 3
lea edi, [esp + 0xac]
add edi, esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi], eax
mov eax, dword [esp + 0x6c]
movzx eax, ax
cdq
mov dword [esp + esi + 0xc0], edx
lea edx, [ebp*2]
add edx, ebp
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 4]
add edx, edx
mov dword [esp + esi + 0xbc], eax
inc ebp
mov eax, dword [ebx]
mov dword [esp + esi + 0xb4], 0
mov dword [esp + edx*8 + 0x238], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + edx*8 + 0x234], eax
mov dword [esp + edx*8 + 0x22c], 0x23
mov dword [esp + edx*8 + 0x230], 0
mov eax, dword [ecx]
mov dword [esp + esi + 0xb8], 0
mov eax, dword [eax + 0x23c]
mov dword [esp + edx*8 + 0x23c], eax
mov dword [esp + edx*8 + 0x240], 0
mov dword [esp + edx*8 + 0x244], 1
mov dword [esp + edx*8 + 0x248], 8
mov dword [esp + edx*8 + 0x24c], 0
mov dword [esp + edx*8 + 0x250], edi
mov dword [esp + edx*8 + 0x254], 0
mov edx, dword [esp + 0x38]
inc edx
mov edi, dword [esp + 0x5c]
test edi, edi
je 0x104bb807
mov ecx, dword [esp + 0xa20]
lea edx, [edx + edx*2]
shl edx, 3
lea esi, [esp + 0xac]
add esi, edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + edx + 0xb4], 0
mov dword [esp + edx + 0xb8], 0
mov dword [esp + edx + 0xbc], edi
mov dword [esp + edx + 0xc0], 0
lea edx, [ebp*2]
add edx, ebp
mov dword [esi + 4], ecx
mov ecx, dword [ebx + 4]
add edx, edx
mov dword [esi], eax
inc ebp
mov eax, dword [ebx]
mov dword [esp + edx*8 + 0x238], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + edx*8 + 0x234], eax
mov dword [esp + edx*8 + 0x22c], 0x23
mov dword [esp + edx*8 + 0x230], 0
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x23c]
mov dword [esp + edx*8 + 0x23c], eax
mov dword [esp + edx*8 + 0x240], 0
mov dword [esp + edx*8 + 0x244], 1
mov dword [esp + edx*8 + 0x248], 8
mov dword [esp + edx*8 + 0x24c], 0
mov dword [esp + edx*8 + 0x250], esi
mov dword [esp + edx*8 + 0x254], 0
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x22c]
push 0
push 0
push eax
push ebp
push dword [esi + 0x1904]
call dword [0x10ac2d78]
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
test ecx, ecx
jne 0x104bb831
test eax, eax
je 0x104bb840
push 0x17
push eax
push ecx
lea ecx, [esi + 0xe50]
call fcn.104d5120
mov ecx, dword [esp + 0xa0c]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0xa00
ret 0x14