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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x3e7b8]
push ebx
mov ebx, dword [eax + 0x3e7b4]
mov ecx, dword [eax]
add ecx, 0x59f8
mov dword [esp + 0x34], ebx
push esi
lea esi, [eax + 0x3abf0]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x30]
push edi
mov dword [esp + 0x74], ecx
mov edi, edx
mov ecx, dword [esi + 0x34]
imul edi, ebx
mov ebx, dword [esi + 0x40]
imul ebx, ecx
mov dword [esp + 0x78], ecx
mov ecx, dword [eax + 0x9155c]
mov dword [esp + 0x88], ecx
mov ecx, dword [esi + 0x1ac]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esi + 0x1b4]
mov dword [esp + 0x90], ecx
mov ecx, dword [eax + 0x6d6b4]
movzx eax, byte [esi + 0x48]
mov dword [esp + 0x7c], edi
mov edi, 1
mov dword [esp + 0x64], ebx
xor ebx, ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x5c], closesocket
mov dword [esp + 0x60], closesocket
mov dword [esp + 0x2c], edi
test edx, edx
jle 0x10070e3d
imul eax, dword [esp + 0x3c], 0x5d00
add ecx, 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x48], eax
cmp dword [esp + 0x3c], 0
jle 0x10070e2a
mov eax, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
nop dword [eax]
mov ecx, dword [eax]
mov edi, ebx
mov ebx, dword [eax + 4]
mov edx, ebx
mov esi, dword [eax - 8]
sub edx, ecx
mov eax, dword [eax - 4]
sub eax, esi
shl edx, 2
imul eax, edx
mov dword [esp + 0x34], edx
shl eax, 2
cmp dword [esp + 0x28], eax
cmovg eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov eax, edx
imul eax, dword [esp + 0x4c]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp edi, eax
cmovg eax, edi
mov edi, dword [esp + 0x74]
shl ecx, 2
mov edx, edi
sub edx, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x78]
lea eax, [esi*4]
mov esi, dword [esp + 0x5c]
sub ecx, eax
cmp esi, edx
cmovge esi, edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x5c], esi
cmp edx, ecx
mov esi, dword [esp + 0x44]
cmovge edx, ecx
mov dword [esp + 0x60], edx
cmp ebx, dword [esi + 0x1e8]
je 0x10070df2
xor eax, eax
cmp edi, dword [esi + 0x40]
mov edi, dword [esp + 0x2c]
je 0x10070de2
cmp dword [esp + 0x34], 0x80
setge al
and edi, eax
mov dword [esp + 0x2c], edi
jmp 0x10070df6
cmp dword [esp + 0x34], 0x40
setge al
and edi, eax
mov dword [esp + 0x2c], edi
jmp 0x10070df6
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
add eax, 0x5d00
sub dword [esp + 0x18], 1
mov dword [esp + 0x10], eax
jne 0x10070d40
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], ebx
add ecx, eax
sub edx, 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], edx
jne 0x10070d24
mov eax, dword [ebp + 0xc]
push eax
push esi
call fcn.100903f0
mov ecx, dword [esi + 0x3bb8]
add esp, 8
mov eax, dword [esi + 0x3e88]
xor esi, esi
mov dword [esp + 0x80], eax
fstp qword [esp + 0xa0]
mov al, byte [ecx + 0x45]
mov byte [esp + 0x98], al
movzx eax, byte [ecx + 0x39]
mov dword [esp + 0x9c], eax
mov eax, dword [ecx + 0x70]
inc eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x38], esi
test eax, eax
jle 0x100713ed
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x3e8c]
add eax, 8
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x58]
add eax, 0x24
add ecx, 0x74
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], ecx
mov edx, dword [ecx]
test edx, edx
je 0x10070edd
mov eax, dword [esp + 0x80]
xor ecx, ecx
bts ecx, eax
mov eax, dword [esp + 0x84]
bts ecx, eax
mov eax, ecx
and eax, edx
cmp eax, ecx
jne 0x100713bc
mov eax, dword [esp + 0x58]
mov ecx, esi
mov eax, dword [eax + 0x20]
shr eax, cl
test al, 1
je 0x100713bc
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x78]
mov esi, dword [esi]
mov dword [esp + 0x94], esi
mov eax, dword [esi + 4]
cmp eax, ecx
movsd xmm0, qword [esi + 0x30]
cmovg ecx, eax
cmp dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, ebx
cmovg ecx, dword [esi + 8]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
minsd xmm0, qword [esp + 0xa0]
cmovl ecx, eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x60]
cmp eax, ecx
cmovl ecx, eax
movsd qword [esi + 0x30], xmm0
and dword [esi + 0x14], edi
mov eax, dword [esi + 0x18]
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x74]
cmp eax, ecx
cmovl ecx, eax
movd xmm0, edi
cmp dword [esi + 0x1c], edx
mov eax, edi
mov dword [esi + 0x18], ecx
mov ecx, edx
cmovl ecx, dword [esi + 0x1c]
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x64]
addsd xmm0, qword [eax*8 + 0x1059bac0]
addsd xmm0, qword [esi + 0x20]
movsd qword [esi + 0x20], xmm0
mov eax, dword [esi + 0x3c]
cmp eax, ecx
cmovg ecx, eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x40]
cmp ecx, dword [eax + 0x40]
cmovle ecx, dword [eax + 0x40]
cmp dword [esi + 0x44], edx
mov eax, dword [esi + 0x54]
mov dword [esi + 0x40], ecx
mov ecx, edx
cmovg ecx, dword [esi + 0x44]
mov dword [esi + 0x44], ecx
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
cmovg ecx, eax
mov eax, dword [esi + 0x50]
mov dword [esi + 0x54], ecx
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
cmovg ecx, eax
mov dword [esi + 0x50], ecx
mov edx, dword [esi + 0x2888]
cmp edx, 0x100
jge 0x10070fef
inc edx
mov dword [esi + 0x2888], edx
jmp 0x1007100a
mov eax, dword [esi + 0x288c]
inc eax
and eax, 0x800000ff
jns 0x10071004
dec eax
or eax, 0xffffff00
inc eax
mov dword [esi + 0x288c], eax
mov eax, dword [esi + 0x288c]
dec eax
add eax, edx
and eax, 0x800000ff
jns 0x10071021
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ebp + 0x10]
lea eax, [eax + eax*4]
mov dword [esi + eax*8 + 0x88], edx
mov edx, dword [ebp + 0x14]
mov dword [esi + eax*8 + 0x8c], edx
mov edx, dword [ebp + 0x18]
mov dword [esi + eax*8 + 0x90], edx
mov edx, dword [ebp + 0x1c]
mov dword [esi + eax*8 + 0x94], edx
mov edx, dword [esp + 0x64]
mov dword [esi + eax*8 + 0x9c], edx
mov edx, dword [esp + 0x88]
mov dword [esi + eax*8 + 0x98], edi
mov edi, dword [esp + 0x7c]
mov dword [esi + eax*8 + 0xa0], edx
mov edx, dword [esp + 0x8c]
mov dword [esi + eax*8 + 0xa4], edi
mov edi, dword [esp + 0x90]
mov dword [esi + eax*8 + 0xa8], edx
mov dword [esi + eax*8 + 0xac], edi
test edx, edx
je 0x10071302
mov ecx, dword [esi + 0x288c]
mov edi, dword [esi + 0x2888]
dec ecx
add ecx, edi
and ecx, 0x800000ff
jns 0x100710ba
dec ecx
or ecx, 0xffffff00
inc ecx
lea eax, [ecx + ecx*4]
mov dword [esp + 0x20], ecx
mov edx, dword [esi + eax*8 + 0x90]
mov eax, dword [esi + eax*8 + 0x94]
sub edx, 0x989680
mov dword [esp + 0x14], edx
sbb eax, 0
mov dword [esp + 0x10], eax
js 0x100710e8
jg 0x10071101
test edx, edx
jne 0x10071101
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
add edi, 0xfffffffe
lea eax, [ecx - 1]
mov edx, 1
mov dword [esp + 0x18], edi
js 0x10071152
mov ebx, edi
test eax, eax
mov edi, 0xff
cmovs eax, edi
lea edi, [eax + eax*4]
cmp dword [esi + edi*8 + 0xa8], 0
je 0x10071147
mov ecx, dword [esp + 0x10]
cmp dword [esi + edi*8 + 0x8c], ecx
mov ecx, dword [esp + 0x14]
jl 0x1007114e
jg 0x10071147
cmp dword [esi + edi*8 + 0x88], ecx
jb 0x1007114e
dec eax
inc edx
sub ebx, 1
jns 0x10071114
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x2888]
xorps xmm0, xmm0
cmp eax, edx
movlpd qword [esp + 0x20], xmm0
mov edi, dword [esp + 0x20]
cmovl edx, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x18], 0
movlpd qword [esp + 0x68], xmm0
mov dword [esp + 0x10], 0
mov dword [esp + 0x50], edx
test edx, edx
jle 0x10071243
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x54], edi
mov dword [esp + 0x20], eax
lea edi, [ecx + ecx*4]
cmp dword [esi + edi*8 + 0xac], 0
lea ebx, [esi + edi*8]
jne 0x100711e2
mov eax, dword [esp + 0x40]
add eax, dword [esi + edi*8 + 0xa0]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x9c]
cdq
add dword [esp + 0x20], eax
adc dword [esp + 0x14], edx
mov edx, dword [esp + 0x50]
cmp dword [esi + edi*8 + 0xa8], 0
je 0x100711ff
mov eax, dword [ebx + 0x9c]
cdq
add dword [esp + 0x54], eax
adc dword [esp + 0x30], edx
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
add eax, dword [esi + edi*8 + 0xa4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
add eax, dword [esi + edi*8 + 0x98]
sub ecx, 1
mov dword [esp + 0x10], eax
mov eax, 0xff
cmovs ecx, eax
sub edx, 1
mov dword [esp + 0x50], edx
jne 0x100711b0
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
jmp 0x10071253
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x48]
cmp eax, dword [esp + 0x40]
cmovle eax, dword [esp + 0x40]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x58]
cmp dword [esi + 0x5c], ecx
jl 0x10071275
jg 0x10071270
cmp eax, edi
jbe 0x10071275
mov ecx, dword [esi + 0x5c]
jmp 0x10071277
mov eax, edi
mov edi, dword [esi + 0x64]
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x5c], ecx
mov ecx, dword [esi + 0x60]
cmp edi, eax
jl 0x10071291
jg 0x10071295
cmp ecx, edx
ja 0x10071295
mov ecx, edx
mov edi, eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x4c], ecx
lea edx, [eax*8]
mov dword [esi + 0x64], edi
cmovg ecx, dword [esi + 0x4c]
mov eax, closesocket
cmp edx, eax
mov dword [esi + 0x4c], ecx
mov ecx, dword [esi]
cmovb eax, edx
cmp ecx, eax
jg 0x100712ce
mov ecx, closesocket
cmp edx, ecx
cmovb ecx, edx
mov eax, dword [ebp + 8]
mov dword [esi], ecx
mov ecx, dword [eax + 0x5cb88]
sub ecx, dword [eax + 0x5cb80]
mov edx, dword [eax + 0x5cb8c]
sbb edx, dword [eax + 0x5cb84]
call fcn.10511ed0
divsd xmm0, qword [0x1059baa0]
addsd xmm0, qword [esi + 0x28]
movsd qword [esi + 0x28], xmm0
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x2890]
mov ebx, 0x1c
lea esi, [eax*8]
push edi
push esi
push dword [ebp + 8]
call fcn.100701b0
add esp, 0xc
add edi, 0x7b0
sub ebx, 1
jne 0x10071317
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x94]
mov ebx, dword [esp + 0x1c]
mov al, byte [edi + eax]
mov byte [esp + 0x70], al
cmp al, 0x1c
jae 0x100713c0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3eecc], 0
je 0x100713c0
mov eax, dword [esp + 0x4c]
push 0
push dword [esp + 0x9c]
push dword [esp + 0xa4]
movzx eax, byte [eax + edi + 0x13d]
push eax
push dword [esp + 0x80]
push esi
call fcn.10071400
add esp, 0x18
cmp eax, 0x15
je 0x100713c0
push dword [eax*4 + section..data]
movzx ecx, byte [esp + 0x74]
mov eax, ecx
shr ecx, 2
and eax, 3
add ecx, 2
push eax
mov eax, dword [esp + 0x4c]
push ecx
push str.Failed_to_encode_to_the_target_level__d__d.__s
push 1
push dword [eax + 0x2c]
call fcn.1006e850
add esp, 0x18
jmp 0x100713c0
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
inc edi
mov ecx, dword [esp + 0x48]
add dword [esp + 0x34], 4
add ecx, 4
mov dword [esp + 0x38], edi
mov eax, dword [eax + 0x70]
mov esi, dword [esp + 0x38]
inc eax
cmp edi, eax
mov dword [esp + 0x48], ecx
mov edi, dword [esp + 0x2c]
jl 0x10070eb5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret