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

Disassembly:
mov eax, 0x10018
call fcn.00496770
mov edx, dword [0x7368a0]
mov eax, dword [0x727410]
and edx, 0xff
push ebx
not edx
push ebp
and edx, eax
xor ebp, ebp
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
lea eax, [ecx + ecx*2]
shl eax, 4
sub eax, ecx
mov edi, dword [eax*4 + 0x727430]
lea esi, [eax*4 + 0x727420]
mov dword [esp + 0x24], edi
cmp dword [esi], ebp
je 0x443047
mov eax, 1
shl eax, cl
mov ebx, dword [0x7381e4]
test ebx, eax
je 0x443047
mov al, 1
shl al, cl
mov byte [esp + 0x12], al
mov bl, al
mov al, byte [esi + 0x77]
and bl, dl
test al, al
mov byte [esp + 0x13], bl
je 0x442949
push esi
call fcn.00442610
mov ecx, dword [esi + 0x70]
mov eax, edi
add esp, 4
mov byte [esi + 0x77], 0
mov dx, word [ecx]
shr eax, 0x10
mov word [esi + 0x48], dx
mov dword [esi + 0x7c], eax
jne 0x4428f5
mov dword [esi + 0x7c], 1
cmp dword [esi + 0x7c], 0x10
jbe 0x442902
mov dword [esi + 0x7c], 0xf
mov eax, dword [esi + 0x7c]
mov cx, word [ecx + eax*2]
mov al, byte [0x73828d]
test al, al
mov word [esi + 0x8c], cx
mov dword [esi + 0x90], ebp
je 0x442949
cmp edi, 0x10000
jae 0x442949
test bl, bl
jne 0x442949
movsx edx, word [esi + 0x48]
movsx eax, cx
sub eax, edx
imul eax, edi
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esi + 0x90], eax
movsx ecx, word [esi + 0x48]
movsx eax, word [esi + 0x20]
imul eax, ecx
cdq
and edx, 0x7f
mov dword [esp + 0x18], ebp
add eax, edx
mov edi, eax
movsx eax, word [esi + 0x22]
imul eax, ecx
mov ecx, dword [esp + 0x1002c]
cdq
and edx, 0x7f
add eax, edx
sar edi, 7
sar eax, 7
cmp ecx, ebp
jbe 0x44303d
mov ecx, dword [esp + 0x24]
mov dl, byte [esp + 0x13]
mov ebx, ecx
test dl, dl
mov dword [esp + 0x20], ebx
je 0x4429af
mov edx, ebp
shr edx, 1
mov ebx, dword [esp + edx*4 + 0x28]
add ebx, 0x800000
shr ebx, 0x10
imul ebx, ecx
shr ebx, 7
mov dword [esp + 0x20], ebx
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
add edx, ecx
mov ecx, edx
mov dword [esi + 0x28], edx
cmp ecx, 0x10000
jb 0x442cda
mov edx, dword [esi]
mov eax, ecx
shr eax, 0x10
dec edx
cmp edx, 8
ja case.default.0x4429d9
jmp dword [edx*4 + 0x443060]
mov edi, dword [esi + 0x1c]
lea edx, [eax + eax]
add edi, edx
and ecx, 0xffff
mov eax, edi
mov dword [esi + 0x28], ecx
mov ecx, eax
mov dword [esi + 0x1c], edi
shl ecx, 0x18
cmp eax, 0x7e
mov dword [esi + 0x88], ecx
jl case.default.0x4429d9
mov eax, dword [esi + 0x44]
mov dword [esi + 0x1c], 0x7f
cmp eax, 8
mov dword [esi + 0x88], 0x7f000000
mov dword [esi], 2
je 0x442a92
mov ecx, dword [esi + 0x38]
mov edx, eax
shl edx, 7
sub edx, eax
shr edx, 3
cmp ecx, 0xffffffff
mov word [esi + 0x24], dx
jne 0x442a52
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
jmp case.default.0x4429d9
test ecx, ecx
mov dword [esi + 0x30], 0xffffffff
je 0x442a46
mov eax, dword [0x7381e8]
test eax, eax
je 0x442a46
mov edi, dword [0x7381e8]
mov eax, dword [0x4b3d70]
cdq
imul edi, ecx
push 0
push 0x3e80000
push edx
push eax
call fcn.00498110
push 0
push edi
push edx
push eax
call fcn.00498060
jmp 0x442c7c
mov eax, dword [esi + 0x3c]
xor edi, edi
cmp eax, 0xffffffff
mov dword [esi], 3
mov word [esi + 0x24], di
je 0x442b68
cmp eax, edi
mov dword [esi + 0x30], 0xffffffff
je 0x442b6b
mov ecx, dword [0x7381e8]
cmp ecx, edi
je 0x442b6b
jmp 0x442b3e
mov ebx, dword [esi + 0x88]
mov ebp, dword [esi + 0x28]
mov edx, 0xffff0000
mov ecx, 0x10000
mov eax, ebx
add ebp, edx
sar eax, 8
mov edi, eax
shl edi, 8
sub edi, eax
cmp ebp, ecx
mov ebx, edi
jae 0x442adc
movsx ecx, word [esi + 0x24]
mov eax, edi
mov dword [esi + 0x28], ebp
sar eax, 0x18
cmp eax, ecx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x1c], eax
jg case.default.0x4429d9
xor edi, edi
cmp eax, edi
jle 0x442fe5
mov eax, dword [esi + 0x3c]
mov dword [esi], 3
cmp eax, 0xffffffff
mov word [esi + 0x24], di
je 0x442b68
cmp eax, edi
mov dword [esi + 0x30], 0xffffffff
je 0x442b6b
mov ecx, dword [0x7381e8]
cmp ecx, edi
je 0x442b6b
mov ebx, dword [0x7381e8]
imul ebx, eax
mov eax, dword [0x4b3d74]
push edi
cdq
push 0x3e80000
push edx
push eax
call fcn.00498110
push edi
push ebx
push edx
push eax
call fcn.00498060
jmp 0x442c7c
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
jmp case.default.0x4429d9
mov ebx, dword [esi + 0x88]
mov ebp, dword [esi + 0x28]
mov edx, 0xffff0000
mov ecx, 0x10000
mov eax, ebx
add ebp, edx
sar eax, 8
mov edi, eax
shl edi, 8
sub edi, eax
cmp ebp, ecx
mov ebx, edi
jae 0x442b86
jmp 0x442dee
mov edi, dword [esi + 0x88]
mov ebx, dword [esi + 0x28]
mov edx, 0xff810000
mov ecx, 0xffff0000
mov eax, 0x10000
add ebx, ecx
add edi, edx
cmp ebx, eax
jae 0x442bb7
mov eax, edi
mov dword [esi + 0x28], ebx
sar eax, 0x18
test eax, eax
mov dword [esi + 0x88], edi
mov dword [esi + 0x1c], eax
jle 0x442fef
jmp case.default.0x4429d9
mov edi, dword [esi + 0x1c]
lea edx, [eax + eax]
and ecx, 0xffff
add edi, edx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x1c], edi
mov eax, edi
jmp 0x442c3f
mov edx, dword [esi + 0x1c]
cmp edx, 0x5f
jl 0x442c30
mov edi, dword [esi + 0x88]
mov ebx, dword [esi + 0x28]
mov edx, 0x7f0000
mov ecx, 0xffff0000
mov eax, 0x10000
add ebx, ecx
add edi, edx
cmp ebx, eax
jae 0x442c15
mov eax, edi
mov dword [esi + 0x28], ebx
sar eax, 0x18
mov dword [esi + 0x88], edi
mov dword [esi + 0x1c], eax
jmp 0x442c48
and ecx, 0xffff
lea eax, [edx + eax*2]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x1c], eax
shl eax, 0x18
mov dword [esi + 0x88], eax
cmp dword [esi + 0x1c], 0x7e
jl case.default.0x4429d9
mov dword [esi + 0x1c], 0x7f
mov dword [esi + 0x88], 0x7f000000
mov dword [esi], 5
mov dword [esi + 0x84], 5
xor eax, eax
mov dword [esi + 0x30], 0xffffffff
mov word [esi + 0x24], ax
mov dword [esi + 0x2c], eax
movsx eax, word [esi + 8]
mov edi, dword [esi + 0x1c]
imul eax, edi
cdq
and edx, 0x7f
add eax, edx
mov ecx, eax
movsx eax, word [esi + 0xa]
imul eax, edi
cdq
movsx ebx, word [esi + 0x48]
and edx, 0x7f
add eax, edx
sar ecx, 7
mov ebp, eax
mov word [esi + 0x20], cx
movsx eax, cx
imul eax, ebx
cdq
and edx, 0x7f
add eax, edx
sar ebp, 7
mov edi, eax
mov word [esi + 0x22], bp
movsx eax, bp
imul eax, ebx
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
cdq
and edx, 0x7f
add eax, edx
sar edi, 7
sar eax, 7
mov ecx, dword [esi + 0x14]
add ecx, ebx
cmp ecx, 0x10000
mov dword [esi + 0x14], ecx
jb 0x442efc
mov eax, dword [esi + 0x7c]
mov dx, word [esi + 0x8c]
mov edi, ecx
and ecx, 0xffff
shr edi, 0x10
add eax, edi
mov dword [esi + 0x14], ecx
cmp eax, 0x10
mov dword [esi + 0x7c], eax
mov word [esi + 0x48], dx
jb 0x442e28
cmp eax, 0xffffff
jae 0x442fef
mov ecx, dword [esi + 0x7c]
mov al, byte [esi + 0x76]
add ecx, 0xfffffff0
test al, al
mov dword [esi + 0x7c], ecx
je 0x442d82
mov al, byte [esi + 0x18]
test al, al
je 0x442e0c
mov al, byte [esp + 0x12]
mov cl, byte [0x7368df]
mov dx, word [esi + 0x74]
or cl, al
mov byte [0x7368df], cl
mov ecx, dword [0x7368c0]
and ecx, 0xff
mov byte [esi + 0x76], 0
shl ecx, 6
add ecx, edx
mov edx, dword [0x7273b4]
shl ecx, 2
and ecx, 0xffff
xor eax, eax
mov ax, word [ecx + edx + 2]
mov dword [esi + 0x78], eax
push esi
call fcn.00442610
mov eax, dword [esi + 0x7c]
add esp, 4
cmp eax, 0x10
jb 0x442e1e
jmp 0x442d23
mov edx, dword [esi + 0x1c]
and ecx, 0xffff
mov dword [esi + 0x28], ecx
lea ecx, [eax + eax]
sub edx, ecx
mov eax, edx
mov dword [esi + 0x1c], edx
shl eax, 0x18
mov dword [esi + 0x88], eax
mov eax, edx
test eax, eax
jle 0x442fef
jmp case.default.0x4429d9
mov ebx, dword [esi + 0x88]
mov ebp, dword [esi + 0x28]
mov edx, 0xffff0000
mov ecx, 0x10000
mov eax, ebx
add ebp, edx
sar eax, 8
mov edi, eax
shl edi, 8
sub edi, eax
cmp ebp, ecx
mov ebx, edi
jae 0x442dda
mov eax, ebx
mov dword [esi + 0x28], ebp
sar eax, 0x18
test eax, eax
mov dword [esi + 0x88], ebx
mov dword [esi + 0x1c], eax
jle 0x442fef
jmp case.default.0x4429d9
mov ax, word [esi + 0x48]
mov dword [esi + 0x7c], 0xffffff
mov word [esi + 0x8c], ax
mov eax, dword [esi + 0x7c]
cmp eax, 0xffffff
jae 0x442e36
mov ecx, dword [esi + 0x70]
mov dx, word [ecx + eax*2]
mov word [esi + 0x8c], dx
mov eax, dword [esi + 4]
xor ecx, ecx
cmp eax, ecx
jne 0x442eab
mov al, byte [0x73828d]
test al, al
je 0x442ef0
cmp ebx, 0x10000
jae 0x442ef0
mov al, byte [esp + 0x13]
test al, al
jne 0x442ef0
mov di, word [esi + 0x48]
movsx ecx, word [esi + 0x8c]
movsx eax, di
sub ecx, eax
mov eax, ecx
imul eax, ebx
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esi + 0x90], eax
mov eax, dword [esi + 0x14]
imul eax, ecx
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
add eax, edi
mov word [esi + 0x48], ax
movsx ecx, ax
jmp 0x442f2d
cmp edi, ecx
jle 0x442ee1
mov eax, closesocket
mov edx, dword [0x7381f0]
shl edx, 1
mov dword [0x7381f0], edx
mov edx, dword [0x7381f0]
test eax, edx
je 0x442ede
mov edx, dword [0x7381f0]
xor edx, 0x40001
mov dword [0x7381f0], edx
dec edi
jne 0x442eb4
mov eax, dword [0x7381f0]
shl eax, 0x11
sar eax, 0x11
mov word [esi + 0x48], ax
mov dword [esi + 0x90], ecx
movsx ecx, word [esi + 0x48]
jmp 0x442f2d
mov ecx, dword [esi + 0x90]
test ecx, ecx
je 0x442f4f
movsx eax, word [esi + 0x48]
add eax, ecx
cmp eax, 0xffff8000
jge 0x442f1a
mov eax, 0xffff8000
jmp 0x442f26
cmp eax, 0x7fff
jle 0x442f26
mov eax, 0x7fff
mov word [esi + 0x48], ax
movsx ecx, ax
movsx eax, word [esi + 0x20]
imul eax, ecx
cdq
and edx, 0x7f
add eax, edx
mov edi, eax
movsx eax, word [esi + 0x22]
imul eax, ecx
cdq
and edx, 0x7f
add eax, edx
sar edi, 7
sar eax, 7
mov ecx, dword [esp + 0x14]
mov edx, 1
inc ecx
shl edx, cl
test dword [esp + 0x1c], edx
je 0x442f73
movsx ecx, word [esi + 0x48]
mov edx, dword [esi + 0x1c]
imul edx, ecx
mov ecx, ebp
shr ecx, 1
mov dword [esp + ecx*4 + 0x28], edx
xor edx, edx
mov dl, byte [0x73827e]
mov ecx, edx
xor edx, 1
xor ecx, ebp
add edx, ebp
shl ecx, 2
lea edx, [edx*4 + 0x716f18]
mov ebx, dword [ecx + 0x716f18]
add ebx, edi
mov dword [ecx + 0x716f18], ebx
mov ebx, dword [edx]
add ebx, eax
mov dword [edx], ebx
mov edx, dword [esi + 0x80]
add ecx, edx
mov edx, dword [ecx]
add edx, edi
mov dword [ecx], edx
mov edx, dword [esi + 0x80]
xor ecx, ecx
mov cl, byte [0x73827e]
xor ecx, 1
add ecx, ebp
add ebp, 2
mov dword [esp + 0x18], ebp
mov ebx, dword [edx + ecx*4]
lea ecx, [edx + ecx*4]
add ebx, eax
mov dword [ecx], ebx
mov ecx, dword [esp + 0x1002c]
cmp ebp, ecx
jb 0x442982
jmp 0x44303d
mov dword [esi], edi
mov dword [esi + 0x84], edi
jmp 0x442fff
mov dword [esi], 0
mov dword [esi + 0x84], 0
mov al, byte [esp + 0x12]
mov cl, byte [0x7368df]
mov bl, byte [0x7368af]
mov dl, byte [0x7368bf]
or cl, al
mov byte [0x7368df], cl
mov cl, byte [0x73685e]
not al
and bl, al
and dl, al
and cl, al
mov byte [0x7368af], bl
mov byte [0x7368bf], dl
mov byte [0x73685e], cl
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
xor ebp, ebp
inc ecx
cmp ecx, 8
mov dword [esp + 0x14], ecx
jb 0x44287f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10018
ret