Function at 0x49a5d0
Capabilities:
Create thread
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8f82
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x4d625c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
push 0x3e8
push eax
mov dword [ebp - 0x608], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x21
push 0
push 0x1036
push eax
mov dword [esi + 0x3f], eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
mov esi, 0x4d58ec
lea ebx, [edi + 4]
mov ecx, dword [esi - 4]
xor eax, eax
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x640], eax
mov dword [ebp - 0x644], eax
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x634], eax
mov dword [ebp - 0x630], eax
mov eax, 5
mov dword [ebp - 0x640], esi
mov dword [ebp - 0x648], 0
cmp ecx, 0xffffffff
je 0x49a686
mov eax, 7
mov dword [ebp - 0x644], ecx
mov edx, dword [ebp - 0x608]
lea ecx, [ebp - 0x64c]
push ecx
or eax, 8
push edi
mov dword [ebp - 0x64c], eax
mov eax, dword [edx + 0x3f]
push 0x101b
push eax
mov dword [ebp - 0x638], 0
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
add esi, 0x84
dec ebx
jne 0x49a632
mov ecx, dword [ebp - 0x608]
mov edx, dword [ecx + 4]
xor esi, esi
push esi
push 0xbb8
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
mov dword [ebp - 0x518], 0xf
mov dword [ebp - 0x51c], esi
mov byte [ebp - 0x52c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49a711
sub eax, edx
push eax
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x52c]
call fcn.0047dd40
mov ebx, dword [ebp - 0x51c]
mov edi, dword [ebp - 0x518]
mov dword [ebp - 4], esi
cmp ebx, 1
jb 0x49a79e
lea eax, [ebx - 1]
cmp eax, 0xffffffff
jbe 0x49a74c
or eax, 0xffffffff
mov esi, dword [ebp - 0x52c]
cmp edi, 0x10
jae 0x49a75d
lea esi, [ebp - 0x52c]
add esi, eax
nop
cmp byte [esi], 0x2f
jne 0x49a775
movzx eax, byte [esi]
sub eax, 0x2f
je 0x49a787
sar eax, 0x1f
or eax, 1
je 0x49a787
lea ecx, [ebp - 0x52c]
call fcn.00477770
cmp esi, eax
je 0x49a79e
dec esi
jmp 0x49a760
mov eax, dword [ebp - 0x52c]
cmp edi, 0x10
jae 0x49a798
lea eax, [ebp - 0x52c]
sub esi, eax
mov edi, esi
jmp 0x49a7a1
or edi, 0xffffffff
cmp ebx, 1
jb 0x49a808
lea eax, [ebx - 1]
cmp eax, 0xffffffff
jbe 0x49a7b1
or eax, 0xffffffff
cmp dword [ebp - 0x518], 0x10
mov esi, dword [ebp - 0x52c]
jae 0x49a7c6
lea esi, [ebp - 0x52c]
add esi, eax
cmp byte [esi], 0x5c
jne 0x49a7dd
movzx eax, byte [esi]
sub eax, 0x5c
je 0x49a7ef
sar eax, 0x1f
or eax, 1
je 0x49a7ef
lea ecx, [ebp - 0x52c]
call fcn.00477770
cmp esi, eax
je 0x49a808
dec esi
jmp 0x49a7c8
cmp dword [ebp - 0x518], 0x10
mov eax, dword [ebp - 0x52c]
jae 0x49a804
lea eax, [ebp - 0x52c]
sub esi, eax
jmp 0x49a80b
or esi, 0xffffffff
mov ecx, edi
cmp edi, esi
jg 0x49a813
mov ecx, esi
or esi, 0xffffffff
cmp ebx, ecx
jae 0x49a824
push str.invalid_string_position
call fcn.0049ca44
mov eax, ebx
sub eax, ecx
cmp eax, 0xffffffff
jae 0x49a833
mov esi, eax
test esi, esi
je 0x49a88a
mov edx, dword [ebp - 0x518]
mov edi, dword [ebp - 0x52c]
cmp edx, 0x10
jae 0x49ab0f
lea edi, [ebp - 0x52c]
mov edx, edi
sub eax, esi
add edi, ecx
push eax
add edi, esi
add edx, ecx
push edi
push edx
call fcn.0049e190
mov eax, dword [ebp - 0x51c]
mov ecx, dword [ebp - 0x52c]
sub eax, esi
add esp, 0xc
cmp dword [ebp - 0x518], 0x10
mov dword [ebp - 0x51c], eax
jae 0x49a886
lea ecx, [ebp - 0x52c]
mov byte [ecx + eax], 0
mov esi, dword [ebp - 0x608]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x52c]
add esi, 0x43
push edx
mov ecx, esi
call fcn.0047c0e0
push 0xffffffffffffffff
push 0
mov edi, 0xf
push esi
lea ecx, [ebp - 0x580]
mov dword [ebp - 0x56c], edi
mov dword [ebp - 0x570], 0
mov byte [ebp - 0x580], 0
call fcn.0047c0e0
push 8
push str.log.txt
lea ecx, [ebp - 0x580]
mov byte [ebp - 4], 1
call fcn.0047dc20
mov eax, dword [ebp - 0x580]
mov ebx, 0x10
cmp dword [ebp - 0x56c], ebx
jae 0x49a900
lea eax, [ebp - 0x580]
push eax
push 0x80
push 0x4db9ae
mov byte [0x4db9a9], 1
call fcn.0049f84a
add esp, 0xc
push 0x4db9ae
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x59c]
mov dword [ebp - 0x588], edi
mov dword [ebp - 0x58c], 0
mov byte [ebp - 0x59c], 0
call fcn.0047c0e0
push 9
push str.photo.db
lea ecx, [ebp - 0x59c]
mov byte [ebp - 4], 2
call fcn.0047dc20
mov edi, dword [ebp - 0x59c]
cmp dword [ebp - 0x588], ebx
jae 0x49a976
lea edi, [ebp - 0x59c]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
neg eax
push edi
sbb eax, eax
inc eax
push 0
push eax
call ebx
push eax
lea eax, [ebp - 0x310]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x310]
push ecx
push 0
push 0xfde9
call edi
push 0
push 0
push eax
lea edx, [ebp - 0x510]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push 0
push 0xfde9
call edi
lea ecx, [ebp - 0x510]
push ecx
mov ecx, 0x4dcc5c
call fcn.00476860
push str.PicTable
mov ecx, 0x4dcc5c
call fcn.00477270
test al, al
jne 0x49aa15
push str.CREATE_TABLE_PicTable__ID__INTEGER_PRIMARY_KEY__Photo__blob__Answer__char_4___ServerId__integer_DEFAULT_0__CreatedTime__TIMESTAMP_DEFAULT__datetime_now_localtime____
mov ecx, 0x4dcc5c
call fcn.00476e20
push str.delete_from_PicTable_where_CreatedTime___datetime_now_localtime__5_minute__
mov ecx, 0x4dcc5c
call fcn.00476e20
push str.delete_from_PicTable_where_Answer_is_null_
mov ecx, 0x4dcc5c
call fcn.00476e20
mov ebx, dword [ebp - 0x608]
push 0x54
lea edi, [ebx + 0x5f]
push 0
push edi
call fcn.0049d4a0
add esp, 0xc
lea edx, [ebp - 0x66c]
push edx
push 0
push 0
push 0x494d40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x564]
mov dword [ebp - 0x550], 0xf
mov dword [ebp - 0x554], 0
mov byte [ebp - 0x564], 0
call fcn.0047c0e0
push 9
push str.user.ini
lea ecx, [ebp - 0x564]
mov byte [ebp - 4], 3
call fcn.0047dc20
cmp dword [ebp - 0x550], 0x10
mov edx, dword [ebp - 0x564]
jae 0x49aab9
lea edx, [ebp - 0x564]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49aac0
sub eax, esi
push eax
lea esi, [ebx + 0xb7]
push edx
mov ecx, esi
call fcn.0047dd40
push 5
push str.login
lea ecx, [ebx + 0xd3]
call fcn.0047dd40
lea ebx, [esi + 0x38]
push 4
push str.user
mov ecx, ebx
mov dword [ebp - 0x610], ebx
call fcn.0047dd40
mov eax, 0x10
cmp dword [esi + 0x14], eax
jb 0x49ab1a
mov edx, dword [esi]
jmp 0x49ab1c
mov edx, dword [ebp - 0x52c]
jmp 0x49a850
mov edx, esi
cmp dword [ebx + 0x14], eax
jb 0x49ab25
mov ecx, dword [ebx]
jmp 0x49ab27
mov ecx, ebx
lea ebx, [esi + 0x1c]
mov dword [ebp - 0x618], ebx
cmp dword [ebx + 0x14], eax
jb 0x49ab39
mov eax, dword [ebx]
jmp 0x49ab3b
mov eax, ebx
push edx
push 0x1000
lea ebx, [esi + 0x54]
push ebx
push 0x4c5ab4
push ecx
push eax
mov dword [ebp - 0x614], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push 0x28
push edi
call fcn.0049f84a
mov ecx, dword [ebp - 0x610]
add esp, 0xc
push 4
push str.pass
call fcn.0047dd40
cmp dword [esi + 0x14], 0x10
jb 0x49ab7e
mov esi, dword [esi]
mov ecx, dword [ebp - 0x610]
mov edx, 0x10
cmp dword [ecx + 0x14], edx
jb 0x49ab90
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x618]
cmp dword [eax + 0x14], edx
jb 0x49ab9d
mov eax, dword [eax]
push esi
push 0x1000
mov edx, ebx
push edx
push 0x4c5ab4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x614]
mov ebx, dword [ebp - 0x608]
push eax
lea esi, [ebx + 0x87]
push 0x28
push esi
call fcn.0049f84a
mov ecx, dword [ebx + 4]
add esp, 0xc
push 0x3ea
mov dword [ebx + 0xaf], 2
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
call ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
push eax
call edi
mov edx, dword [ebp - 0x608]
mov eax, dword [edx + 4]
push 0x3eb
push eax
call ebx
push esi
push eax
call edi
test byte [0x4dceb0], 1
jne 0x49ac77
or dword [0x4dceb0], 1
mov ecx, 0x4dce88
mov byte [ebp - 4], 4
call fcn.0048b1e0
mov ecx, 0x4dce98
xor eax, eax
mov dword [0x4dce84], 0x4bd24c
mov dword [0x4dce94], eax
mov dword [0x4dce98], ecx
mov dword [0x4dce9c], ecx
mov dword [0x4dcea0], eax
mov dword [0x4dcea4], eax
mov ecx, 0x4dcea8
mov byte [ebp - 4], 7
call fcn.004761b0
push 0x4ba5e0
mov byte [0x4dceac], 0
call fcn.0049e702
add esp, 4
test byte [0x4dceb0], 2
jne 0x49acc5
or dword [0x4dceb0], 2
push 0x4dce84
mov ecx, 0x4dcdc0
mov byte [ebp - 4], 8
call fcn.00498a50
push 0x4ba5f0
mov dword [0x4dcdc0], 0x4bdad4
mov dword [0x4dcdc4], 0x4bdac4
mov dword [0x4dcdd5], 0x4bdab8
call fcn.0049e702
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x628], ebx
mov dword [ebp - 0x624], ebx
lea ecx, [ebp - 0x62c]
push ecx
mov byte [ebp - 4], 9
call fcn.00498590
add esp, 4
test eax, eax
jne 0x49adf9
mov edx, dword [ebp - 0x608]
mov eax, dword [edx + 4]
push ebx
push 0x4c5ab4
push 0x4bdafc
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [ebp - 0x62c]
cmp esi, ebx
mov ebx, 0xf
je 0x49ad5c
mov edi, dword [ebp - 0x628]
cmp esi, edi
je 0x49ad4d
cmp dword [esi + 0x14], 0x10
jb 0x49ad39
mov ecx, dword [esi]
push ecx
call fcn.0049d51a
add esp, 4
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x1c
cmp esi, edi
jne 0x49ad28
mov edx, dword [ebp - 0x62c]
push edx
call fcn.0049d51a
add esp, 4
mov esi, 0x10
cmp dword [ebp - 0x550], esi
jb 0x49ad78
mov eax, dword [ebp - 0x564]
push eax
call fcn.0049d51a
add esp, 4
xor edi, edi
mov dword [ebp - 0x550], ebx
mov dword [ebp - 0x554], edi
mov byte [ebp - 0x564], 0
cmp dword [ebp - 0x588], esi
jb 0x49ada4
mov ecx, dword [ebp - 0x59c]
push ecx
call fcn.0049d51a
add esp, 4
mov dword [ebp - 0x588], ebx
mov dword [ebp - 0x58c], edi
mov byte [ebp - 0x59c], 0
cmp dword [ebp - 0x56c], esi
jb 0x49adce
mov edx, dword [ebp - 0x580]
push edx
call fcn.0049d51a
add esp, 4
mov dword [ebp - 0x56c], ebx
mov dword [ebp - 0x570], edi
mov byte [ebp - 0x580], 0
cmp dword [ebp - 0x518], esi
jb 0x49b429
mov eax, dword [ebp - 0x52c]
push eax
jmp 0x49b421
mov dword [ebp - 0x534], 0xf
mov dword [ebp - 0x538], ebx
mov byte [ebp - 0x548], 0
mov esi, dword [ebp - 0x610]
push 6
push str.bindIp
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.0047dd40
mov eax, dword [ebp - 0x608]
add eax, 0xb7
mov edi, 0x10
cmp dword [eax + 0x14], edi
jb 0x49ae3f
mov eax, dword [eax]
cmp dword [esi + 0x14], edi
jb 0x49ae48
mov edx, dword [esi]
jmp 0x49ae4a
mov edx, esi
mov ecx, dword [ebp - 0x618]
cmp dword [ecx + 0x14], edi
jb 0x49ae57
mov ecx, dword [ecx]
mov edi, dword [ebp - 0x614]
push eax
push 0x1000
push edi
push 0x4c5ab4
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, str.127.0.0.1
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x49ae98
test dl, dl
je 0x49ae94
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x49ae98
add eax, 2
add ecx, 2
test dl, dl
jne 0x49ae78
xor eax, eax
jmp 0x49ae9d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x49aebc
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49aea6
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x548]
call fcn.0047dd40
mov ecx, dword [ebp - 0x628]
mov esi, dword [ebp - 0x62c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x49af3c
mov ebx, eax
cmp dword [esi + 0x14], 0x10
jb 0x49aeeb
mov ecx, dword [esi]
jmp 0x49aeed
mov ecx, esi
mov eax, edi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x49af10
test dl, dl
je 0x49af0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x49af10
add eax, 2
add ecx, 2
test dl, dl
jne 0x49aef0
xor eax, eax
jmp 0x49af15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x49af36
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49af20
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x548]
call fcn.0047dd40
add esi, 0x1c
dec ebx
jne 0x49aee1
cmp dword [ebp - 0x538], 0
jne 0x49b198
xor ebx, ebx
mov dword [ebp - 0x5e4], ebx
mov dword [ebp - 0x5d4], ebx
mov dword [ebp - 0x5d0], ebx
mov dword [ebp - 0x5cc], ebx
mov dword [ebp - 0x5e8], 0x4bd9a8
mov dword [ebp - 0x5c8], ebx
mov dword [ebp - 0x5c4], ebx
mov dword [ebp - 0x5c0], ebx
mov dword [ebp - 0x5a4], 0xf
mov dword [ebp - 0x5a8], ebx
mov byte [ebp - 0x5b8], bl
lea ecx, [ebp - 0x62c]
push ecx
lea ecx, [ebp - 0x5c8]
mov byte [ebp - 4], 0xb
call fcn.004980f0
push ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x5e8]
call fcn.00497650
push 1
push ebx
lea edx, [ebp - 0x60c]
push edx
lea ecx, [ebp - 0x5b8]
mov byte [ebp - 0x60c], 0x20
call fcn.00496d80
mov ecx, dword [ebp - 0x5a8]
or esi, 0xffffffff
cmp ecx, eax
jae 0x49aff1
push str.invalid_string_position
call fcn.0049ca44
mov edx, ecx
sub edx, eax
cmp edx, 0xffffffff
jae 0x49b000
mov esi, edx
cmp esi, ebx
jbe 0x49b064
mov edx, dword [ebp - 0x5a4]
mov ebx, dword [ebp - 0x5b8]
mov edi, ebx
cmp edx, 0x10
jae 0x49b0d2
lea edi, [ebp - 0x5b8]
mov edx, edi
sub ecx, esi
sub ecx, eax
push ecx
lea ecx, [esi + edi]
add ecx, eax
push ecx
add edx, eax
push edx
call fcn.0049e190
mov eax, dword [ebp - 0x5a8]
mov ecx, dword [ebp - 0x5b8]
sub eax, esi
add esp, 0xc
cmp dword [ebp - 0x5a4], 0x10
mov dword [ebp - 0x5a8], eax
jae 0x49b058
lea ecx, [ebp - 0x5b8]
mov edi, dword [ebp - 0x614]
mov byte [eax + ecx], 0
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x5b8]
push edx
lea ecx, [ebp - 0x548]
call fcn.0047c0e0
cmp dword [ebp - 0x534], 0x10
mov esi, dword [ebp - 0x548]
jae 0x49b08e
lea esi, [ebp - 0x548]
mov ebx, dword [ebp - 0x610]
push 6
push str.bindIp
mov ecx, ebx
call fcn.0047dd40
push esi
push 0x1000
push edi
call fcn.0049f84a
mov eax, dword [ebp - 0x608]
add eax, 0xb7
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x49b0c4
mov eax, dword [eax]
mov esi, 0x10
cmp dword [ebx + 0x14], esi
jb 0x49b0d9
mov edx, dword [ebx]
jmp 0x49b0db
mov edx, ebx
jmp 0x49b01f
mov edx, ebx
mov ecx, dword [ebp - 0x618]
cmp dword [ecx + 0x14], esi
jb 0x49b0e8
mov ecx, dword [ecx]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x5a4], esi
jb 0x49b10d
mov eax, dword [ebp - 0x5b8]
push eax
call fcn.0049d51a
add esp, 4
mov esi, dword [ebp - 0x5c8]
xor ecx, ecx
mov dword [ebp - 0x5a4], 0xf
mov dword [ebp - 0x5a8], ecx
mov byte [ebp - 0x5b8], cl
cmp esi, ecx
je 0x49b176
mov edi, dword [ebp - 0x5c4]
cmp esi, edi
je 0x49b16b
lea ebx, [ecx + 0xf]
lea esp, [esp]
cmp dword [esi + 0x14], 0x10
jb 0x49b151
mov eax, dword [esi]
push eax
call fcn.0049d51a
add esp, 4
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x1c
cmp esi, edi
jne 0x49b140
mov esi, dword [ebp - 0x5c8]
push esi
call fcn.0049d51a
add esp, 4
xor ecx, ecx
mov eax, dword [ebp - 0x5d4]
mov dword [ebp - 0x5c8], ecx
mov dword [ebp - 0x5c4], ecx
mov dword [ebp - 0x5c0], ecx
cmp eax, ecx
je 0x49b198
push eax
call fcn.004b2e17
mov eax, dword [ebp - 0x548]
mov ebx, 0x10
cmp dword [ebp - 0x534], ebx
jae 0x49b1b1
lea eax, [ebp - 0x548]
mov ecx, dword [ebp - 0x608]
push eax
push 0x4bdae8
push ecx
call fcn.00496cf0
mov edx, dword [ebp - 0x548]
add esp, 0xc
cmp dword [ebp - 0x534], ebx
jae 0x49b1da
lea edx, [ebp - 0x548]
xor edi, edi
mov eax, edx
mov dword [ebp - 0x5f0], 0xf
mov dword [ebp - 0x5f4], edi
mov byte [ebp - 0x604], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49b1f8
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x604]
call fcn.0047dd40
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x5f4], edi
jne 0x49b276
xor eax, eax
mov edx, 2
mov dword [ebp - 0x668], eax
push 0xf9f
mov dword [ebp - 0x664], eax
mov dword [ebp - 0x660], eax
mov dword [ebp - 0x65c], eax
mov dword [ebp - 0x658], eax
mov dword [ebp - 0x654], eax
mov dword [ebp - 0x650], eax
mov word [ebp - 0x668], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x666], ax
mov dword [ebp - 0x664], 0
lea esi, [ebp - 0x668]
jmp 0x49b2cf
mov dword [ebp - 0x61c], edi
call fcn.004b30c0
mov dword [ebp - 0x618], eax
mov eax, dword [ebp - 0x604]
cmp dword [ebp - 0x5f0], ebx
jae 0x49b29b
lea eax, [ebp - 0x604]
lea ecx, [ebp - 0x61c]
push ecx
push eax
lea edx, [ebp - 0x668]
push edx
call fcn.004800d0
add esp, 0xc
push 0xf9f
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x648]
call fcn.00487690
lea esi, [ebp - 0x648]
mov ecx, 7
mov edi, 0x4dce23
rep movsd dword es:[edi], dword [esi]
mov esi, 0x10
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x5f0], esi
jb 0x49b2fb
mov ecx, dword [ebp - 0x604]
push ecx
call fcn.0049d51a
add esp, 4
push 1
mov ecx, 0x4dce84
call fcn.0048eae0
cmp dword [ebp - 0x534], esi
jb 0x49b31e
mov edx, dword [ebp - 0x548]
push edx
call fcn.0049d51a
add esp, 4
mov esi, dword [ebp - 0x62c]
mov ebx, 0xf
mov dword [ebp - 0x534], ebx
mov dword [ebp - 0x538], 0
mov byte [ebp - 0x548], 0
test esi, esi
je 0x49b384
mov edi, dword [ebp - 0x628]
cmp esi, edi
je 0x49b375
mov edi, edi
cmp dword [esi + 0x14], 0x10
jb 0x49b361
mov eax, dword [esi]
push eax
call fcn.0049d51a
add esp, 4
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x1c
cmp esi, edi
jne 0x49b350
mov ecx, dword [ebp - 0x62c]
push ecx
call fcn.0049d51a
add esp, 4
cmp dword [ebp - 0x550], 0x10
jb 0x49b39c
mov edx, dword [ebp - 0x564]
push edx
call fcn.0049d51a
add esp, 4
cmp dword [ebp - 0x588], 0x10
mov dword [ebp - 0x550], ebx
mov dword [ebp - 0x554], 0
mov byte [ebp - 0x564], 0
jb 0x49b3cb
mov eax, dword [ebp - 0x59c]
push eax
call fcn.0049d51a
add esp, 4
cmp dword [ebp - 0x56c], 0x10
mov dword [ebp - 0x588], ebx
mov dword [ebp - 0x58c], 0
mov byte [ebp - 0x59c], 0
jb 0x49b3fa
mov ecx, dword [ebp - 0x580]
push ecx
call fcn.0049d51a
add esp, 4
cmp dword [ebp - 0x518], 0x10
mov dword [ebp - 0x56c], ebx
mov dword [ebp - 0x570], 0
mov byte [ebp - 0x580], 0
jb 0x49b429
mov edx, dword [ebp - 0x52c]
push edx
call fcn.0049d51a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049d48e
mov esp, ebp
pop ebp
ret