Function at 0x576860
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594664
mov eax, dword fs:[0]
push eax
sub esp, 0x5dc
mov eax, dword [0x61b660]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c4], ecx
push 0
call fcn.0052b1e1
add esp, 4
mov dword [ebp - 0x514], eax
mov dword [ebp - 0x510], edx
push 0xa
lea eax, [ebp - 0x2ac]
push eax
mov ecx, dword [ebp - 0x514]
push ecx
call fcn.00579be7
add esp, 0xc
push 0xa
lea edx, [ebp - 0x2e8]
push edx
mov eax, dword [ebp - 0x5c4]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx + 8]
push edx
call fcn.00579be7
add esp, 0xc
mov eax, dword [ebp - 0x5c4]
mov ecx, dword [eax + 0x2c]
add ecx, 0x68
mov dword [ebp - 0x558], ecx
mov edx, dword [0x5a6ffc]
push edx
push 0
mov eax, dword [ebp - 0x558]
push eax
mov ecx, dword [ebp - 0x5c4]
add ecx, 0x84
call fcn.00405c70
push 0x5ecebc
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x55c], eax
mov ecx, dword [ebp - 0x55c]
push ecx
push 0x5ecebc
mov ecx, dword [ebp - 0x5c4]
add ecx, 0x84
call fcn.00406360
lea edx, [ebp - 0x2e8]
push edx
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x560], eax
mov eax, dword [ebp - 0x560]
push eax
lea ecx, [ebp - 0x2e8]
push ecx
mov ecx, dword [ebp - 0x5c4]
add ecx, 0x84
call fcn.00406360
mov edx, dword [ebp - 0x5c4]
mov eax, dword [edx + 0x2c]
add eax, 0x4c
mov dword [ebp - 0x570], eax
lea ecx, [ebp - 0x569]
mov dword [ebp - 0x568], ecx
lea edx, [ebp - 0x2c8]
mov dword [ebp - 0x5c8], edx
mov dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x2c8]
call fcn.00406060
mov eax, dword [0x5a6ffc]
push eax
push 0
mov ecx, dword [ebp - 0x570]
push ecx
lea ecx, [ebp - 0x2c8]
call fcn.00405c70
mov dword [ebp - 4], 1
lea edx, [ebp - 0x3ec]
push edx
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x50c]
push ecx
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 0x5c4]
add ecx, 0x84
call fcn.00406100
push eax
call fcn.0052abdc
add esp, 0x14
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x408]
call fcn.00405860
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50c]
push ecx
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x584], eax
mov edx, dword [ebp - 0x584]
push edx
lea eax, [ebp - 0x50c]
push eax
lea ecx, [ebp - 0x408]
call fcn.00406360
lea ecx, [ebp - 0x408]
call fcn.00406100
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
push 7
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x2c8]
call fcn.004058f0
mov dword [ebp - 0x5cc], eax
mov edx, dword [ebp - 0x5cc]
mov dword [ebp - 0x588], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x588]
call fcn.00406100
mov dword [ebp - 0x58c], eax
push str.http:__
mov eax, dword [ebp - 0x58c]
push eax
call fcn.00529cb0
add esp, 8
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x551], al
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406060
mov byte [ebp - 4], 2
movzx ecx, byte [ebp - 0x551]
test ecx, ecx
je 0x576b2f
mov edx, dword [0x5a6ffc]
push edx
push 7
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.004058f0
mov dword [ebp - 0x5d0], eax
mov ecx, dword [ebp - 0x5d0]
mov dword [ebp - 0x590], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x590]
push edx
lea ecx, [ebp - 0x2c8]
call fcn.00405ab0
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00406060
mov byte [ebp - 4], 2
mov byte [ebp - 0x591], 0x2f
push 1
push 0
lea eax, [ebp - 0x591]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00405d80
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
cmp ecx, dword [0x5a6ffc]
jne 0x576c34
xor edx, edx
je 0x576b73
push 0x63a8c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
je 0x576b81
mov dword [0x63a8d8], 0x67
xor ecx, ecx
je 0x576bae
push str.SocketDownLoad.cpp
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x598], eax
mov edx, dword [ebp - 0x598]
push edx
push str.SocketDownLoad.cpp
mov ecx, 0x63a8dc
call fcn.004064c0
xor eax, eax
je 0x576be9
cmp dword [ebp - 0x2b4], 0x10
jb 0x576bc9
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x5d4], ecx
jmp 0x576bd5
lea edx, [ebp - 0x2c8]
mov dword [ebp - 0x5d4], edx
mov eax, dword [ebp - 0x5d4]
push eax
push 0x5ecea8
call fcn.00575290
add esp, 8
mov byte [ebp - 0x552], 0
mov byte [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x408]
call fcn.00406060
mov byte [ebp - 4], 1
mov dword [ebp - 4], 8
push 0
push 1
lea ecx, [ebp - 0x2c8]
call fcn.00406060
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x552]
jmp 0x576f6e
mov ecx, dword [ebp - 0x84]
push ecx
push 0
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x2c8]
call fcn.004058f0
mov dword [ebp - 0x5d8], eax
mov eax, dword [ebp - 0x5d8]
mov dword [ebp - 0x59c], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x59c]
push ecx
mov ecx, dword [ebp - 0x5c4]
add ecx, 0x4c
call fcn.00405ab0
mov byte [ebp - 4], 0xa
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00406060
mov byte [ebp - 4], 2
mov edx, dword [0x5a6ffc]
push edx
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x2c8]
call fcn.004058f0
mov dword [ebp - 0x5dc], eax
mov edx, dword [ebp - 0x5dc]
mov dword [ebp - 0x5a0], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x5a0]
push eax
mov ecx, dword [ebp - 0x5c4]
add ecx, 0x30
call fcn.00405ab0
mov byte [ebp - 4], 0xc
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00406060
mov byte [ebp - 4], 2
push 0x10
push 0
mov ecx, dword [ebp - 0x5c4]
add ecx, 8
push ecx
call fcn.00529d40
add esp, 0xc
mov edx, 2
mov eax, dword [ebp - 0x5c4]
mov word [eax + 8], dx
mov ecx, dword [ebp - 0x5c4]
add ecx, 0x4c
mov dword [ebp - 0x5a4], ecx
mov edx, dword [ebp - 0x5a4]
cmp dword [edx + 0x14], 0x10
jb 0x576d37
mov eax, dword [ebp - 0x5a4]
mov ecx, dword [eax]
mov dword [ebp - 0x5e0], ecx
jmp 0x576d43
mov edx, dword [ebp - 0x5a4]
mov dword [ebp - 0x5e0], edx
mov eax, dword [ebp - 0x5e0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [ebp - 0x5c4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x5c4]
cmp dword [edx + 0x18], 0
jne 0x576eec
push 0x5a7264
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x5a8], eax
mov eax, dword [ebp - 0x5a8]
push eax
push 0
push 0x5a7264
mov ecx, dword [ebp - 0x5c4]
add ecx, 0x4c
call fcn.00405d80
mov dword [ebp - 0x518], eax
mov ecx, dword [ebp - 0x518]
cmp ecx, dword [0x5a6ffc]
je 0x576ea4
mov edx, dword [ebp - 0x518]
push edx
push 0
lea eax, [ebp - 0x534]
push eax
mov ecx, dword [ebp - 0x5c4]
add ecx, 0x4c
call fcn.004058f0
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x520], 0x10
jb 0x576de9
mov ecx, dword [ebp - 0x534]
mov dword [ebp - 0x5e4], ecx
jmp 0x576df5
lea edx, [ebp - 0x534]
mov dword [ebp - 0x5e4], edx
mov eax, dword [ebp - 0x5e4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp - 0x5c4]
mov dword [ecx + 0xc], eax
mov edx, dword [0x5a6ffc]
push edx
mov eax, dword [ebp - 0x518]
add eax, 1
push eax
lea ecx, [ebp - 0x550]
push ecx
mov ecx, dword [ebp - 0x5c4]
add ecx, 0x4c
call fcn.004058f0
cmp dword [ebp - 0x53c], 0x10
jb 0x576e48
mov edx, dword [ebp - 0x550]
mov dword [ebp - 0x5e8], edx
jmp 0x576e54
lea eax, [ebp - 0x550]
mov dword [ebp - 0x5e8], eax
mov ecx, dword [ebp - 0x5e8]
push ecx
call fcn.00529782
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x5c4]
mov word [edx + 0xa], ax
mov byte [ebp - 4], 0xe
push 0
push 1
lea ecx, [ebp - 0x550]
call fcn.00406060
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xf
push 0
push 1
lea ecx, [ebp - 0x534]
call fcn.00406060
mov byte [ebp - 4], 2
jmp 0x576eea
mov byte [ebp - 0x553], 0
mov byte [ebp - 4], 0x10
push 0
push 1
lea ecx, [ebp - 0x408]
call fcn.00406060
mov byte [ebp - 4], 1
mov dword [ebp - 4], 0x11
push 0
push 1
lea ecx, [ebp - 0x2c8]
call fcn.00406060
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x553]
jmp 0x576f6e
jmp 0x576f2d
mov eax, dword [ebp - 0x5c4]
mov ecx, dword [eax + 0x18]
movsx edx, word [ecx + 0xa]
push edx
mov eax, dword [ebp - 0x5c4]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x5c4]
add ecx, 0xc
push ecx
call fcn.00529940
add esp, 0xc
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x5c4]
mov word [edx + 0xa], ax
mov byte [ebp - 0x554], 1
mov byte [ebp - 4], 0x12
push 0
push 1
lea ecx, [ebp - 0x408]
call fcn.00406060
mov byte [ebp - 4], 1
mov dword [ebp - 4], 0x13
push 0
push 1
lea ecx, [ebp - 0x2c8]
call fcn.00406060
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x554]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052927b
mov esp, ebp
pop ebp
ret