Function at 0x10022c50
Capabilities:
Check if file exists
Print debug messages
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010d028
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x10163164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, str.A
mov edx, str.AAAA
mov dword [ebp - 0x60], esi
mov cl, byte [esi]
movups xmm1, xmmword [esi + 0x3c]
test cl, cl
mov byte [ebp - 0x65], cl
movq xmm0, qword [esi + 0x4c]
cmove eax, edx
movq qword [ebp - 0xa4], xmm0
mov dword [ebp - 0x88], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x9c], eax
movd eax, xmm1
movups xmmword [ebp - 0xb4], xmm1
cmp ax, 2
jne 0x10022cd8
test cl, cl
je 0x10022cd3
mov eax, dword [edi + 0x1c]
jmp 0x10022d07
mov eax, dword [edi + 0x20]
jmp 0x10022d07
lea edx, [edi + 0x20]
lea eax, [edi + 0x1c]
test cl, cl
je 0x10022ce6
mov ecx, dword [eax]
jmp 0x10022ce8
mov ecx, dword [edx]
mov dword [ebp - 0x5c], ecx
cmp ecx, 0xffffffff
jne 0x10022d0a
cmp byte [ebp - 0x65], 0
movups xmm0, xmmword [edi + 0x1d8]
cmove eax, edx
mov eax, dword [eax]
movups xmmword [ebp - 0xb4], xmm0
mov dword [ebp - 0x5c], eax
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax]
cmp word [ebp - 0xb4], 2
lea eax, [esi + 0x24]
push eax
movzx eax, byte [esi]
lea ecx, [esi + 0x18]
push eax
movzx eax, word [ecx]
push eax
sete al
mov dword [ebp - 0x8c], ecx
movzx eax, al
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100236d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.100b88be
cmp dword [ebp - 0x2c], 0x10
lea edx, [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
mov esi, eax
cmovae edx, dword [ebp - 0x40]
inc ecx
push ecx
push edx
push esi
call fcn.100c29f0
push 8
call fcn.100b88be
add esp, 0x14
mov dword [eax], edi
push 0
push eax
push 0x10023540
push 0
push 0xbb8
mov dword [eax + 4], esi
call dword [sym.imp.WINMM.dll_timeSetEvent]
lea esi, [edi + 0x164]
push esi
mov dword [ebp - 0x70], esi
call fcn.100b723b
add esp, 4
test eax, eax
jne 0x10023438
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x1002343f
push dword [ebp - 0x60]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [edi + 0x194]
push eax
call fcn.10023a50
mov ecx, eax
call fcn.10023790
push esi
mov byte [ebp - 4], 0
call fcn.100b7260
mov esi, dword [ebp - 0x60]
lea ecx, [ebp - 0x98]
movzx eax, byte [esi]
mov dx, word [esi + 0x18]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.10026b10
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, 0x1c
mov edx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x98]
sub edx, ecx
cmp word [ebp - 0xb4], 2
mov dword [ebp - 0x80], 0x10
cmove eax, dword [ebp - 0x80]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push edx
push ecx
push dword [ebp - 0x5c]
call dword [sym.imp.WS2_32.dll_sendto]
call fcn.1007dac0
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x7c]
lea eax, [esi + 0x24]
mov dword [ebp - 0x80], edx
mov dx, word [esi + 0x18]
push 1
push eax
call fcn.10026b10
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x7c]
sub eax, ecx
je 0x1002334d
cmp word [esi + 0x66], 0
mov dword [ebp - 0x6c], 0xc8
je 0x100230e4
push 0x48
call fcn.100b887b
mov ecx, eax
xorps xmm0, xmm0
mov dword [ebp - 0x6c], ecx
lea eax, [ecx + 8]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
lea edx, [ecx + 0x3c]
mov dword [eax + 0x14], 0xf
add esp, 4
mov byte [eax], 0
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [ebp - 0x64], eax
xor eax, eax
mov word [ecx + 4], ax
mov byte [ecx + 0x20], 1
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
movups xmmword [ecx + 0x2c], xmm0
mov dword [ecx], edi
mov ax, word [esi + 0x18]
mov word [ecx + 4], ax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x5c], eax
lea eax, [ecx + 8]
mov dword [ebp - 0x60], edx
cmp eax, dword [ebp - 0x5c]
je 0x10022f15
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x64]
push eax
call fcn.10024080
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x6c]
movups xmm0, xmmword [esi + 0x64]
movups xmmword [ecx + 0x2c], xmm0
mov al, byte [esi]
mov byte [ecx + 0x20], al
mov eax, dword [ebp - 0x84]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x80]
mov dword [ecx + 0x28], eax
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x78]
sub ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x5c], eax
sub eax, dword [edx]
mov dword [ebp - 0x64], eax
cmp ecx, eax
jae 0x10022f4c
mov eax, dword [edx]
add eax, ecx
jmp 0x10022f82
jbe 0x10022f85
mov eax, dword [edx + 8]
sub eax, dword [edx]
cmp ecx, eax
jbe 0x10022f65
push ecx
push ecx
mov ecx, edx
call fcn.10025470
mov edx, dword [ebp - 0x60]
jmp 0x10022f85
sub ecx, dword [ebp - 0x64]
push ecx
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x64], ecx
call fcn.100c2fd0
mov eax, dword [ebp - 0x64]
add esp, 0xc
add eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
sub ecx, eax
push ecx
push eax
push dword [edx]
call fcn.100c29f0
add esp, 0xc
push 0
push dword [ebp - 0x6c]
push 0x10023460
push 0
push 0xc8
call dword [sym.imp.WINMM.dll_timeSetEvent]
test eax, eax
jne 0x100230dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x7c]
cmp word [esi + 0x64], 2
mov dword [ebp - 0x6c], eax
je 0x1002300e
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x20
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
call fcn.100b887b
movups xmm0, xmmword [0x10149d84]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x14], 0x1f
movups xmmword [eax], xmm0
mov byte [eax + 0x10], 0
jmp 0x1002301e
movzx eax, word [esi + 0x66]
lea ecx, [ebp - 0x28]
mov edx, dword [esi + 0x68]
push eax
call fcn.10078060
add esp, 4
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x18]
push eax
push 0x8c
push 0x10146a68
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x58]
call fcn.100244a0
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x10023058
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x10023093
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10023089
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002344a
push ecx
push edx
call fcn.100b88b0
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0x10
jb 0x100230dd
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100230d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002344a
push ecx
push edx
call fcn.100b88b0
add esp, 8
mov dword [ebp - 0x6c], 0x190
push 0x48
call fcn.100b887b
mov edx, eax
xorps xmm0, xmm0
movups xmmword [edx + 8], xmm0
mov dword [edx + 0x18], 0
lea eax, [edx + 8]
mov dword [eax + 0x14], 0xf
lea ecx, [edx + 0x3c]
mov byte [eax], 0
add esp, 4
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebp - 0x60], eax
xor eax, eax
mov word [edx + 4], ax
mov byte [edx + 0x20], 1
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
movups xmmword [edx + 0x2c], xmm0
mov dword [edx], edi
mov ax, word [esi + 0x18]
mov word [edx + 4], ax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x64], eax
lea eax, [edx + 8]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x70], ecx
cmp eax, dword [ebp - 0x64]
je 0x1002317c
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x60]
push eax
call fcn.10024080
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x5c]
movups xmm0, xmmword [edi + 0x1b8]
movups xmmword [edx + 0x2c], xmm0
mov al, byte [esi]
mov byte [edx + 0x20], al
mov eax, dword [ebp - 0x84]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x80]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 4]
mov esi, dword [ebp - 0x78]
sub esi, dword [ebp - 0x7c]
mov dword [ebp - 0x60], eax
sub eax, dword [ecx]
mov dword [ebp - 0x70], eax
cmp esi, eax
jae 0x100231b9
mov eax, dword [ecx]
add eax, esi
mov dword [ecx + 4], eax
jmp 0x100231ec
jbe 0x100231ec
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp esi, eax
jbe 0x100231d0
push ecx
push esi
call fcn.10025470
mov edx, dword [ebp - 0x5c]
jmp 0x100231ec
sub esi, dword [ebp - 0x70]
push esi
push 0
push dword [ebp - 0x60]
call fcn.100c2fd0
mov edx, dword [ebp - 0x5c]
add esp, 0xc
mov eax, dword [ebp - 0x60]
add eax, esi
mov dword [edx + 0x40], eax
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
sub ecx, eax
push ecx
push eax
push dword [edx + 0x3c]
call fcn.100c29f0
add esp, 0xc
push 0
push dword [ebp - 0x5c]
push 0x10023460
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.WINMM.dll_timeSetEvent]
test eax, eax
jne 0x1002334a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x7c]
cmp word [edi + 0x1b8], 2
mov dword [ebp - 0x64], eax
je 0x10023277
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x20
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
call fcn.100b887b
movups xmm0, xmmword [0x10149d84]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x14], 0x1f
movups xmmword [eax], xmm0
mov byte [eax + 0x10], 0
jmp 0x1002328d
movzx eax, word [edi + 0x1ba]
lea ecx, [ebp - 0x28]
mov edx, dword [edi + 0x1bc]
push eax
call fcn.10078060
add esp, 4
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
push 0x89
push str._NFSDK__2__DNS__DnsResolver____qid:_4x__handleRequestLocalProtect_
lea ecx, [ebp - 0x58]
call fcn.100244a0
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x100232c9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x10023304
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100232fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002344f
push ecx
push edx
call fcn.100b88b0
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0x10
jb 0x1002334a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10023340
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002344f
push ecx
push edx
call fcn.100b88b0
add esp, 8
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x10023393
mov edx, dword [ebp - 0x74]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10023374
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023454
push edx
push ecx
call fcn.100b88b0
add esp, 8
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x100233eb
mov edx, dword [ebp - 0x90]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100233c3
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023454
push edx
push ecx
call fcn.100b88b0
add esp, 8
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x1002341b
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10023411
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023454
push ecx
push edx
call fcn.100b88b0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
ret 4
push 5
call fcn.100b6fbf
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.100b6fbf
call fcn.100c9aa4
call fcn.100c9aa4
call fcn.100c9aa4
int3