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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x10140004]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x6c], edi
cmp dword [edi + 0x28], 0
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x14], ecx
jne 0x10050d8d
push 0
push 0
lea edx, [edi + 0x28]
call fcn.100509a0
add esp, 8
test eax, eax
jne 0x10050fd2
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 8]
cdq
add eax, dword [edi + 0x30]
adc edx, dword [edi + 0x34]
add eax, 9
adc edx, 0
push edx
mov edx, dword [edi + 0x28]
push eax
call fcn.10050910
add esp, 8
mov edx, esi
mov ecx, edi
call fcn.10050b20
test eax, eax
jne 0x10050fd2
mov eax, dword [edi + 0x30]
xorps xmm0, xmm0
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x68], ecx
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm0
mov eax, dword [eax + 0xc]
mov dword [esp + 0x64], eax
cdq
mov ecx, eax
movq qword [esp + 0x40], xmm0
mov eax, edx
mov dword [esp + 0x60], ecx
push eax
push ecx
mov dword [esp + 0x64], eax
call fcn.1001cb50
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10050e16
mov dword [esp + 0x20], 7
jmp 0x10050e58
push dword [esp + 0x5c]
push dword [esp + 0x64]
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.10116fc0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
cdq
sub ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
sbb eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x40], eax
inc dword [edi + 0x1c]
mov eax, dword [esi + 8]
cdq
mov ecx, eax
test edx, edx
ja 0x10050ea0
jb 0x10050e6c
cmp ecx, 0x7f
ja 0x10050e7a
and cl, 0x7f
mov eax, 1
mov byte [esp + 0x70], cl
jmp 0x10050eae
test edx, edx
ja 0x10050ea0
jb 0x10050e88
cmp ecx, 0x3fff
ja 0x10050ea0
shrd eax, edx, 7
or al, 0x80
and cl, 0x7f
mov byte [esp + 0x70], al
mov eax, 2
mov byte [esp + 0x71], cl
jmp 0x10050eae
push edx
push ecx
lea ecx, [esp + 0x78]
call fcn.100219f0
add esp, 8
push eax
lea edx, [esp + 0x74]
lea ecx, [esp + 0x24]
call fcn.10050c80
mov esi, dword [esi]
add esp, 4
test esi, esi
je 0x10050f62
nop dword [eax]
mov eax, dword [esi]
mov edi, dword [esi + 4]
cdq
test edx, edx
ja 0x10050f15
jb 0x10050ee1
cmp eax, 0x7f
ja 0x10050eee
and al, 0x7f
mov byte [esp + 0x70], al
mov eax, 1
jmp 0x10050f23
test edx, edx
ja 0x10050f15
jb 0x10050efb
cmp eax, 0x3fff
ja 0x10050f15
mov ecx, eax
shrd ecx, edx, 7
or cl, 0x80
and al, 0x7f
mov byte [esp + 0x71], al
mov eax, 2
mov byte [esp + 0x70], cl
jmp 0x10050f23
push edx
push eax
lea ecx, [esp + 0x78]
call fcn.100219f0
add esp, 8
push eax
lea edx, [esp + 0x74]
lea ecx, [esp + 0x24]
call fcn.10050c80
add esp, 4
lea edx, [esi + 8]
lea ecx, [esp + 0x20]
push dword [esi]
call fcn.10050c80
mov eax, dword [esp + 0x20]
add esp, 4
cmp dword [eax + 4], 0
jne 0x10050f58
push esi
call fcn.1001cd70
add esp, 4
mov esi, edi
test edi, edi
jne 0x10050ed0
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
test esi, esi
jne 0x10050fb1
cmp dword [esp + 0x24], 0
je 0x10050fb1
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jle 0x10050fb1
mov esi, dword [esp + 0x40]
mov eax, ecx
cdq
add eax, dword [esp + 0x38]
adc edx, dword [esp + 0x3c]
mov edi, dword [esi]
push edx
push eax
mov eax, dword [esp + 0x38]
sub eax, ecx
add ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, dword [edi + 0xc]
push esi
call ecx
mov esi, eax
add esp, 0x14
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x6c]
push dword [esp + 0x24]
cdq
add eax, dword [esp + 0x3c]
mov dword [ecx + 0x30], eax
adc edx, dword [esp + 0x40]
mov dword [ecx + 0x34], edx
call fcn.1001cd70
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret