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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x65e374]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [esp + 0x5c], eax
xor eax, eax
push edi
mov edi, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
mov eax, dword [edi + 0x28]
mov dword [esp + 0x48], eax
inc eax
mov dword [edi + 0x28], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4ec633
mov ecx, edi
call fcn.0050ef70
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x4ec67e
test dword [edx + 4], 0x800
je 0x4ec67e
mov eax, dword [edx + 0x14]
xor esi, esi
mov edi, dword [eax]
mov eax, dword [edi]
mov dword [esp + 0x30], eax
test eax, eax
jle 0x4ec66f
mov edi, dword [edi + 4]
mov ecx, dword [edi]
call fcn.004ec2f0
test eax, eax
mov eax, dword [esp + 0x30]
jne 0x4ec66b
inc esi
add edi, 0x18
cmp esi, eax
jl 0x4ec654
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x1c]
xor edx, edx
cmp esi, eax
cmove ecx, edx
mov dword [esp + 0x4c], ecx
cmp dword [edi + 0x24], 0
mov ecx, dword [esp + 0x18]
jne 0x4ecdef
mov eax, dword [ecx + 4]
test eax, 0x800
je 0x4ecdef
test al, 0x20
jne 0x4ecdef
mov eax, dword [ecx + 0x14]
cmp dword [eax + 0x30], 0
jne 0x4ecdef
test byte [eax + 8], 9
jne 0x4ecdef
cmp dword [eax + 0x38], 0
jne 0x4ecdef
cmp dword [eax + 0x20], 0
jne 0x4ecdef
mov ecx, dword [eax + 0x1c]
cmp dword [ecx], 1
jne 0x4ecdeb
cmp dword [ecx + 0x1c], 0
jne 0x4ecdeb
mov edi, dword [ecx + 0x18]
mov dword [esp + 0x30], edi
cmp dword [edi + 0x38], 0
jne 0x4ecde7
mov eax, dword [eax]
xor edx, edx
mov dword [esp + 0x68], eax
mov esi, dword [eax]
mov dword [esp + 0x2c], esi
test esi, esi
jle 0x4ec723
mov ecx, dword [eax + 4]
nop dword [eax]
mov eax, dword [ecx]
cmp byte [eax], 0x98
jne 0x4ecde7
inc edx
add ecx, 0x18
cmp edx, esi
jl 0x4ec710
mov ecx, dword [esp + 0x1c]
mov esi, dword [edi + 0x48]
mov eax, dword [ecx]
mov ecx, 0xfff0bdc0
mov dword [esp + 0x6c], eax
test esi, esi
je 0x4ec754
mov edx, dword [eax + 0x14]
xor ecx, ecx
test edx, edx
jle 0x4ec754
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], esi
je 0x4ec754
inc ecx
add eax, 0x10
cmp ecx, edx
jl 0x4ec748
movzx eax, cx
mov ecx, dword [esp + 0x1c]
mov edx, ecx
cwde
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x7c]
test eax, eax
mov ecx, dword [esp + 0x44]
cmovne edx, eax
mov eax, 1
shl eax, cl
mov esi, dword [edx + 0x60]
test esi, eax
jne 0x4ec792
bts esi, ecx
mov dword [edx + 0x60], esi
cmp ecx, 1
jne 0x4ec792
mov ecx, edx
call fcn.004fa970
mov ecx, dword [esp + 0x44]
push dword [edi]
mov edx, ecx
mov ecx, dword [esp + 0x20]
push 0
push dword [edi + 0x1c]
call fcn.004f4a30
mov edx, dword [esp + 0x38]
add esp, 0xc
cmp edx, 1
jne 0x4ec841
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 0x20], 0
jge 0x4ec841
mov ecx, dword [esp + 0x20]
mov edx, 0x14
call fcn.004d5df0
mov edx, dword [esp + 0x48]
mov esi, eax
mov ecx, dword [esp + 0x1c]
push 0x69
push edi
push dword [esp + 0x4c]
call fcn.00503460
mov edi, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x28], 1
mov edx, dword [edi + 0x88]
test esi, esi
jns 0x4ec804
lea esi, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
je 0x4ec824
mov ecx, dword [esp + 0x48]
mov eax, 0x665728
mov dword [eax + 8], edx
mov eax, dword [esp + 0x18]
mov dword [eax + 0x1c], ecx
jmp 0x4ecefe
mov eax, dword [edi + 0x58]
lea ecx, [esi + esi*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
mov dword [eax + 0x1c], ecx
jmp 0x4ecefe
mov dword [esp + 0x50], 0
mov eax, 1
mov dword [esp + 0x34], eax
test edx, edx
jle 0x4ec943
xor esi, esi
nop dword [eax]
test eax, eax
je 0x4ecde7
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
mov al, byte [ecx]
mov byte [esp + 0x17], al
cmp al, 0x9d
jne 0x4ec87c
mov al, byte [ecx + 0x26]
cmp al, 0x9e
jne 0x4ec889
mov eax, dword [ecx + 0x14]
mov edx, dword [eax]
mov edi, edx
jmp 0x4ec894
cmp al, 0x77
jne 0x4ec8b1
mov eax, dword [ecx + 0x14]
mov edx, dword [eax]
mov edi, dword [edx]
cmp edi, 1
jle 0x4ec8b1
cmp byte [esp + 0x17], 0x77
je 0x4ec8ab
cmp byte [ecx + 0x26], 0x77
je 0x4ec8ab
mov eax, dword [eax + 4]
jmp 0x4ec8ae
mov eax, dword [edx + 4]
mov ecx, dword [esi + eax]
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x30]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi]
movsx edx, word [eax + 0x20]
test edx, edx
js 0x4ec8d2
mov eax, dword [edi + 4]
add edx, edx
mov al, byte [eax + edx*8 + 0xd]
jmp 0x4ec8d4
mov al, 0x44
mov byte [esp + 0x17], al
call fcn.004e9c70
mov cl, byte [esp + 0x17]
test al, al
je 0x4ec8fa
test cl, cl
je 0x4ec902
cmp al, 0x43
jge 0x4ec8f6
cmp cl, 0x43
jge 0x4ec8f6
mov al, 0x41
jmp 0x4ec904
mov al, 0x43
jmp 0x4ec904
test cl, cl
jne 0x4ec902
mov al, 0x41
jmp 0x4ec904
add al, cl
movsx eax, al
sub eax, 0x41
je 0x4ec91f
sub eax, 1
je 0x4ec91f
xor eax, eax
cmp cl, 0x43
setge al
mov dword [esp + 0x34], eax
jmp 0x4ec923
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
add esi, 0x18
mov edx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x50], ecx
cmp ecx, edx
jl 0x4ec860
test eax, eax
je 0x4ecde7
mov edi, dword [edi + 8]
mov dword [esp + 0x24], edi
test edi, edi
je 0x4ecde7
xor esi, esi
test esi, esi
jne 0x4ece7c
movzx eax, word [edi + 0x34]
mov ecx, eax
cmp ecx, edx
jl 0x4ecdd0
cmp eax, 0x3f
jae 0x4ecdd0
test byte [ebp + 8], 4
je 0x4ec993
movzx eax, word [edi + 0x32]
cmp eax, edx
jg 0x4ecdd0
cmp ecx, edx
jle 0x4ec993
cmp byte [edi + 0x36], 0
je 0x4ecdd0
mov dword [esp + 0x30], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
test edx, edx
jle 0x4ecb76
mov eax, dword [esp + 0x54]
xor edi, edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x64], edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0xc]
mov al, byte [edx]
mov byte [esp + 0x17], al
cmp al, 0x9d
jne 0x4ec9d6
mov al, byte [edx + 0x26]
cmp al, 0x9e
jne 0x4ec9e3
mov eax, dword [edx + 0x14]
mov ecx, dword [eax]
mov esi, ecx
jmp 0x4ec9ee
cmp al, 0x77
jne 0x4eca0b
mov eax, dword [edx + 0x14]
mov ecx, dword [eax]
mov esi, dword [ecx]
cmp esi, 1
jle 0x4eca0b
cmp byte [esp + 0x17], 0x77
je 0x4eca05
cmp byte [edx + 0x26], 0x77
je 0x4eca05
mov eax, dword [eax + 4]
jmp 0x4eca08
mov eax, dword [ecx + 4]
mov edx, dword [edi + eax]
test dword [edx + 4], 0x100
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 4]
mov esi, dword [edi + eax]
je 0x4eca2f
mov ecx, dword [esp + 0x1c]
call fcn.004e9df0
mov ecx, eax
mov dword [esp + 0x34], ecx
jmp 0x4eca73
test esi, esi
je 0x4eca4f
test dword [esi + 4], 0x100
je 0x4eca4f
mov ecx, dword [esp + 0x1c]
mov edx, esi
call fcn.004e9df0
mov ecx, eax
mov dword [esp + 0x34], ecx
jmp 0x4eca73
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.004e9df0
mov ecx, eax
mov dword [esp + 0x34], ecx
test ecx, ecx
jne 0x4eca73
mov edx, esi
mov ecx, edi
call fcn.004e9df0
mov ecx, eax
mov dword [esp + 0x34], eax
movzx edx, word [esi + 0x20]
xor edi, edi
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x50], edx
mov eax, dword [edi + 4]
mov dword [esp + 0x5c], eax
cmp word [eax], dx
jne 0x4ecaf8
test ecx, ecx
je 0x4ecb0e
mov eax, dword [edi + 0x20]
mov edi, dword [esp + 0x38]
mov esi, dword [ecx]
mov edi, dword [eax + edi*4]
mov al, byte [esi]
movzx ecx, byte [edi]
movzx edx, byte [ecx + 0x62ab18]
movzx ecx, al
movzx ecx, byte [ecx + 0x62ab18]
sub ecx, edx
jne 0x4ecae8
sub edi, esi
test al, al
je 0x4ecae4
movzx ecx, byte [edi + esi + 1]
inc esi
movzx edx, byte [ecx + 0x62ab18]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x62ab18]
sub ecx, edx
je 0x4ecac1
jmp 0x4ecae8
test ecx, ecx
je 0x4ecb0e
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
inc esi
add eax, 2
mov dword [esp + 0x38], esi
mov dword [esp + 0x5c], eax
cmp esi, dword [esp + 0x2c]
jl 0x4eca90
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
cmp edi, edx
je 0x4ecb88
xor edx, edx
mov eax, edi
bts edx, eax
xor esi, esi
cmp eax, 0x20
cmovae esi, edx
xor edx, esi
cmp eax, 0x40
mov ecx, edx
cmovae esi, edx
and ecx, dword [esp + 0x40]
mov eax, esi
and eax, dword [esp + 0x3c]
or ecx, eax
jne 0x4ecb84
or dword [esp + 0x40], edx
or dword [esp + 0x3c], esi
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x30]
test eax, eax
je 0x4ecb58
mov dword [eax + ecx*4], edi
mov edi, dword [esp + 0x64]
inc ecx
mov edx, dword [esp + 0x2c]
add edi, 0x18
mov dword [esp + 0x30], ecx
mov dword [esp + 0x64], edi
cmp ecx, edx
jl 0x4ec9c2
jmp 0x4ecb88
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x40], eax
jmp 0x4ecb90
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x3c]
mov eax, edx
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
add ecx, 0xffffffff
adc edx, 0xffffffff
cmp dword [esp + 0x40], ecx
jne 0x4ecdc8
cmp esi, edx
jne 0x4ecdc8
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 0x88]
cmp dword [eax + 0x30], esi
jg 0x4ecbe8
push 0
push 0
push 0
mov edx, 0x14
call fcn.004d5d40
add esp, 0xc
mov esi, eax
jmp 0x4ecc22
lea eax, [esi + 1]
mov dword [ecx + 0x88], eax
lea ecx, [esi + esi*4]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x58]
mov dword [eax + ecx*4], 0x14
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [edi]
push str.USING_INDEX__s_FOR_IN_OPERATOR
push dword [esp + 0x74]
call fcn.004b9e00
mov ecx, dword [esp + 0x2c]
mov edi, eax
add esp, 0xc
mov dword [esp + 0x64], edi
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x88]
cmp dword [eax + 0x30], edx
jg 0x4ecc64
push 0
push 0
push 0
mov edx, 0xa3
call fcn.004d5d40
add esp, 0xc
mov edx, eax
jmp 0x4ecca2
mov edi, dword [esp + 0x64]
lea eax, [edx + 1]
mov dword [ecx + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x58]
mov dword [eax + ecx*4], 0xa3
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xffffffffffffffff
push edi
mov edi, dword [esp + 0x28]
mov ecx, edi
call fcn.004d6a80
mov eax, dword [edi + 0xc]
add esp, 8
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x88]
mov edx, dword [edx + 0x2c]
cmp dword [eax + 0x30], ecx
jg 0x4ecce2
push dword [esp + 0x44]
mov ecx, edi
push edx
push dword [esp + 0x50]
mov edx, 0x69
call fcn.004d5d40
add esp, 0xc
jmp 0x4ecd14
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov edi, dword [esp + 0x48]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0x69
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov edx, dword [esp + 0x24]
mov edi, dword [eax + 8]
call fcn.004fb160
mov edx, eax
test edx, edx
je 0x4ecd59
mov ecx, dword [edi]
cmp byte [ecx + 0x45], 0
je 0x4ecd44
push edx
mov edx, 0xfffffffb
call fcn.004d67f0
add esp, 4
jmp 0x4ecd59
mov eax, dword [edi + 0x88]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x58]
mov byte [eax + ecx*4 - 0x13], 0xfb
mov dword [eax + ecx*4 - 4], edx
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov eax, dword [edi + 0x1c]
movzx eax, byte [eax]
add eax, 3
mov dword [esp + 0x28], eax
test edx, edx
je 0x4ecd97
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x2c]
inc eax
cmp dword [esp + 0x2c], 1
mov dword [ecx + 0x2c], eax
mov dword [edx], eax
jne 0x4ecd97
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
push eax
call fcn.004ec4a0
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x88]
mov eax, dword [eax]
cmp byte [eax + 0x45], 0
je 0x4ecdb0
mov eax, 0x665728
jmp 0x4ecdc5
test esi, esi
lea eax, [edx - 1]
cmovns eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x58]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov edi, dword [edi + 0x14]
mov dword [esp + 0x24], edi
test edi, edi
jne 0x4ec954
test esi, esi
jne 0x4ece7c
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 8]
test al, 1
je 0x4ece8c
test dword [ecx + 4], 0x800
jne 0x4ece8c
mov esi, dword [ecx + 0xc]
xorps xmm0, xmm0
mov dword [ecx + 0xc], 0
mov edx, ecx
movaps xmmword [esp + 0x70], xmm0
lea ecx, [esp + 0x70]
movq qword [esp + 0x80], xmm0
mov dword [esp + 0x88], 0
mov byte [esp + 0x84], 1
mov dword [esp + 0x74], 0x4ec130
mov dword [esp + 0x78], 0x4ec220
mov dword [esp + 0x88], 0
call fcn.004e79a0
cmp byte [esp + 0x84], 0
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], esi
je 0x4ece74
mov eax, dword [eax + 0x14]
cmp dword [eax], 2
jg 0x4ece89
mov dword [esp + 0x28], 5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x1c], ecx
jmp 0x4ecefe
mov eax, dword [ebp + 8]
mov esi, dword [edi + 0x88]
xor ecx, ecx
mov edx, 2
mov dword [esp + 0x28], edx
test al, 4
je 0x4ececc
mov eax, dword [esp + 0x18]
mov dword [edi + 0x88], ecx
mov eax, dword [eax + 0xc]
cmp word [eax + 0x20], cx
jge 0x4ecedc
mov eax, dword [esp + 0x18]
test dword [eax + 4], 0x800
jne 0x4ecedc
mov edx, 1
mov dword [esp + 0x28], edx
jmp 0x4ecedc
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4ecedc
inc dword [edi + 0x2c]
mov ecx, dword [edi + 0x2c]
mov dword [eax], ecx
xor eax, eax
cmp edx, 1
mov edx, dword [esp + 0x18]
sete al
push eax
push ecx
mov ecx, edi
call fcn.004ed190
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [edi + 0x88], esi
mov edi, dword [esp + 0x60]
test edi, edi
je 0x4ed001
mov edx, dword [esp + 0x28]
cmp edx, 3
je 0x4ecfeb
cmp edx, 4
je 0x4ecfeb
mov ecx, dword [eax + 0xc]
mov al, byte [ecx]
cmp al, 0x9d
jne 0x4ecf2c
mov al, byte [ecx + 0x26]
cmp al, 0x9e
jne 0x4ecf37
mov eax, dword [ecx + 0x14]
mov esi, dword [eax]
jmp 0x4ecf49
cmp al, 0x77
jne 0x4ecf44
mov eax, dword [ecx + 0x14]
mov eax, dword [eax]
mov esi, dword [eax]
jmp 0x4ecf49
mov esi, 1
xor ecx, ecx
test esi, esi
jle 0x4ecfeb
cmp esi, 0x10
jb 0x4ecfdf
movaps xmm1, xmmword [0x63fd90]
mov eax, esi
and eax, reloc.WS2_32.dll_ntohs
jns 0x4ecf71
dec eax
or eax, 0xfffffff0
inc eax
mov edx, dword [esp + 0x60]
mov edi, esi
sub edi, eax
add edx, 0x20
nop dword [eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
lea edx, [edx + 0x40]
paddd xmm0, xmm1
movups xmmword [edx - 0x60], xmm0
movd xmm0, eax
lea eax, [ecx + 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x50], xmm0
movd xmm0, eax
lea eax, [ecx + 0xc]
pshufd xmm0, xmm0, 0
add ecx, 0x10
paddd xmm0, xmm1
movups xmmword [edx - 0x40], xmm0
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x30], xmm0
cmp ecx, edi
jl 0x4ecf80
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x60]
cmp ecx, esi
jge 0x4ecfeb
mov dword [edi + ecx*4], ecx
inc ecx
cmp ecx, esi
jl 0x4ecfe3
mov eax, edx
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x28]
pop edi
pop esi
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret