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

Disassembly:
sub esp, 0xb8
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
mov ebx, dword [esp + 0xc0]
push ebp
mov ebp, dword [esp + 0xd4]
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x68], 0
jne 0x104d86dc
cmp dword [esi + 0x6c], 0
jne 0x104d86dc
mov ecx, dword [esi + 0xc]
xor dl, dl
mov eax, dword [esi + 8]
mov dword [esp + 0x28], eax
test ecx, 0xf0
je 0x104d86de
test ecx, 0x80
jne 0x104d86de
movzx ecx, byte [esi + 0x26]
lea eax, [ebp + 1]
cmp eax, ecx
jae 0x104d86de
test byte [esp + 0xd0], 1
je 0x104d86de
mov byte [esp + 0x13], 1
jmp 0x104d86e3
mov dl, 1
mov byte [esp + 0x13], 0
mov edi, dword [esi + 0x60]
mov eax, dword [esi + 0x78]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
test dl, dl
je 0x104d87fb
cmp edi, 6
je 0x104d8722
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0
push 6
push edi
push dword [esi + 0x48]
push dword [esi + 0x54]
push dword [esi + 0x50]
push ebx
call fcn.104daec0
add esp, 0x28
mov dword [esi + 0x60], 6
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
test edx, edx
jne 0x104d8730
test ecx, ecx
je 0x104d8758
mov eax, dword [esi + 0x78]
cmp eax, 7
je 0x104d8758
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0
push 7
push eax
push dword [esi + 0x48]
push ecx
push edx
push ebx
call fcn.104daec0
add esp, 0x28
mov dword [esi + 0x78], 7
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x30]
push eax
push 1
push 7
push dword [esi + 0x6c]
mov dword [esp + 0x50], 0
push dword [esi + 0x68]
mov dword [esp + 0x58], 0
push 6
push dword [esi + 0x54]
mov dword [esp + 0x64], 0
push dword [esi + 0x50]
mov dword [esp + 0x7c], 0
push ebx
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x70], 1
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ecx
mov dword [esp + 0x94], 1
call dword [0x10ac2dec]
cmp byte [esp + 0x13], 0
je 0x104d8b46
mov eax, dword [esi + 0x60]
cmp eax, 7
je 0x104d8832
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0
push 7
push eax
push dword [esi + 0x48]
push dword [esi + 0x54]
push dword [esi + 0x50]
push ebx
call fcn.104daec0
add esp, 0x28
mov dword [esi + 0x60], 7
mov eax, dword [esi + 0x10]
mov ecx, ebp
sar eax, cl
mov edi, 1
cmp eax, edi
cmovg edi, eax
mov eax, dword [esi + 0x14]
sar eax, cl
mov ecx, 1
cmp eax, ecx
cmovg ecx, eax
movzx eax, byte [esi + 0x25]
push eax
mov dword [esp + 0x1c], ecx
call fcn.104fddc0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov edx, dword [esp + 0xd4]
movzx eax, al
xor eax, 1
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x48]
mov dword [esp + 0x74], eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x94], ecx
mov dword [esp + 0xbc], ecx
mov cl, byte [esi + 0x26]
mov dword [esp + 0x80], edx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], edx
lea edx, [ebp + 1]
movzx eax, cl
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], edi
mov dword [esp + 0x98], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], edi
mov dword [esp + 0xc0], 1
mov dword [esp + 0xa0], 0
mov dword [esp + 0x1c], edx
cmp edx, eax
jae 0x104d8a9e
mov ecx, ebp
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x90], edi
sar edi, 1
mov eax, edi
mov dword [esp + 0x94], ebp
mov edi, 1
mov dword [esp + 0x78], ecx
cmp eax, edi
mov ecx, dword [esi + 0x54]
mov dword [esp + 0xa0], edx
cmova edi, eax
mov edx, dword [esi + 0x48]
sar ebp, 1
mov eax, ebp
mov dword [esp + 0x98], 1
mov ebp, 1
mov dword [esp + 0xb8], edi
cmp eax, ebp
mov dword [esp + 0xc0], 1
mov dword [esp + 0x30], 0x2d
cmova ebp, eax
mov dword [esp + 0x34], 0
mov eax, dword [esi + 0x50]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x30]
push eax
push 1
push 0
push 0
push 0
push 0
push 0
push 0x1000
push 0x1000
push ebx
mov dword [esp + 0xe4], ebp
mov dword [esp + 0x60], 0x1000
mov dword [esp + 0x64], 0x800
mov dword [esp + 0x68], 7
mov dword [esp + 0x6c], 6
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x88], 1
call dword [0x10ac2d9c]
push dword [esp + 0x20]
mov eax, dword [esi + 0x54]
lea edx, [esp + 0x78]
mov ecx, dword [esi + 0x50]
push edx
push 1
push 7
push eax
push ecx
push 6
push eax
push ecx
push ebx
call dword [0x10ac2e00]
mov al, byte [esi + 0x26]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc edx
mov byte [esp + 0x13], al
inc ecx
movzx eax, al
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
cmp edx, eax
jb 0x104d8953
mov ebp, dword [esp + 0xdc]
mov cl, byte [esp + 0x13]
mov eax, dword [esi + 0x50]
mov edx, dword [esi + 0x48]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x30]
push eax
push 1
push 0
push 0
push 0
push 0
push 0
movzx edi, cl
mov ecx, dword [esi + 0x54]
sub edi, ebp
push 0x1000
push 0x1000
dec edi
mov dword [esp + 0x54], 0x2d
push ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0x1000
mov dword [esp + 0x68], 6
mov dword [esp + 0x6c], 7
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], edi
call dword [0x10ac2d9c]
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 0x60]
cmp eax, edi
je 0x104d8b6c
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0
push edi
push eax
push dword [esi + 0x48]
push dword [esi + 0x54]
push dword [esi + 0x50]
push ebx
call fcn.104daec0
add esp, 0x28
mov dword [esi + 0x60], edi
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
test edx, edx
jne 0x104d8b7a
test ecx, ecx
je 0x104d8ba0
mov eax, dword [esi + 0x78]
mov ebp, dword [esp + 0x28]
cmp eax, ebp
je 0x104d8ba0
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0
push ebp
push eax
push dword [esi + 0x48]
push ecx
push edx
push ebx
call fcn.104daec0
add esp, 0x28
mov dword [esi + 0x78], ebp
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0xb8
ret 0x14