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

Disassembly:
push 0xffffffffffffffff
push 0x60bbe3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push ebp
push esi
xor ebp, ebp
push edi
xor ebx, ebx
mov edi, ecx
push ebp
mov dword [esp + 0x80], ebx
call fcn.005fbf82
test eax, eax
jne 0x45be18
push str.Socket_initialisation_failed
lea ecx, [edi + 0x74]
call fcn.005dd2ed
jmp 0x45c46e
lea ecx, [esp + 0x28]
call fcn.005fc640
mov dword [esp + 0x28], 0x62d260
push ebp
push 0x3f
push 1
push ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0x198], ebp
call fcn.005fc0b0
test eax, eax
jne 0x45be51
push ebp
lea ecx, [edi + 0x74]
call fcn.004f5a80
jmp 0x45c45a
mov al, byte [edi + 0x68]
test al, al
je 0x45c45a
push 0x30a2
mov ecx, 0x6bb7d0
call fcn.004fba50
push eax
lea ecx, [esp + 0x30]
call fcn.005fc208
test eax, eax
jne 0x45be87
push ebp
lea ecx, [edi + 0x74]
call fcn.004f5a80
jmp 0x45c45a
mov al, byte [edi + 0x68]
test al, al
je 0x45c45a
mov eax, dword [edi + 0x80]
mov byte [esp + 0x80], 1
cmp eax, ebp
mov dword [esp + 0x10], 1
je 0x45bebd
mov ecx, dword [0x697d4c]
lea eax, [eax + eax*2]
shl eax, 6
mov eax, dword [eax + ecx]
jmp 0x45bed6
mov eax, dword [0x6abf00]
mov ebx, 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x188], bl
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.005dd21e
lea edx, [esp + 0x14]
lea eax, [esp + 0x84]
push edx
push eax
call fcn.0045c490
add esp, 0xc
mov dword [esp + 0x188], ebp
test bl, 1
je 0x45bf0d
lea ecx, [esp + 0x78]
call fcn.005dd1b0
push ecx
lea edx, [edi + 0x84]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.005dcf25
lea eax, [esp + 0x14]
lea ecx, [esp + 0x84]
push eax
push ecx
call fcn.0045c490
add esp, 8
lea edx, [edi + 0x88]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.005dcf25
lea eax, [esp + 0x14]
lea ecx, [esp + 0x84]
push eax
push ecx
call fcn.0045c490
add esp, 8
lea edx, [edi + 0x8c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.005dcf25
lea eax, [esp + 0x14]
lea ecx, [esp + 0x84]
push eax
push ecx
call fcn.0045c490
mov eax, dword [esp + 0x1c]
lea edx, [edi + 0x90]
add esp, 0xc
mov esi, dword [edx]
lea ecx, [esp + eax + 0x80]
add eax, 8
mov edx, dword [edx + 4]
mov dword [ecx], esi
mov dword [ecx + 4], edx
lea ecx, [edi + 0x98]
lea edx, [esp + eax + 0x80]
add eax, 8
mov esi, dword [ecx]
mov dword [edx], esi
mov ecx, dword [ecx + 4]
mov dword [edx + 4], ecx
lea edx, [edi + 0xa0]
lea ecx, [esp + eax + 0x80]
add eax, 8
mov esi, dword [edx]
mov dword [ecx], esi
mov edx, dword [edx + 4]
mov dword [ecx + 4], edx
lea ecx, [edi + 0xa8]
lea edx, [esp + eax + 0x80]
add eax, 4
mov ecx, dword [ecx]
mov dword [esp + 0x10], eax
mov dword [edx], ecx
lea esi, [esp + eax + 0x80]
lea edx, [esp + 0x23]
lea ecx, [esp + 0x3c]
push edx
mov byte [esp + 0x18c], 2
call fcn.00482bc0
lea eax, [esp + 0x21]
lea ecx, [esp + 0x80]
push eax
push esi
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x194], 4
call fcn.0045ee80
mov byte [esp + 0x188], 5
lea edx, [esp + 0x3c]
push edx
call fcn.0045b980
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
sub ecx, eax
add esp, 4
add ecx, 4
lea edx, [esp + 0x22]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.0045eed0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
sub ecx, eax
push ebp
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.005fc7b9
lea ecx, [esp + 0x3c]
mov byte [esp + 0x188], 0
call fcn.0045ce10
mov al, byte [edi + 0x68]
test al, al
je 0x45c45a
lea edx, [esp + 0x22]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x18c], 6
call fcn.00482bc0
push ebp
lea eax, [esp + 0x84]
push 0x100
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x194], 8
call fcn.005fc769
mov cl, byte [edi + 0x68]
test cl, cl
je 0x45c151
cmp eax, ebp
je 0x45c167
lea ecx, [esp + 0x21]
lea edx, [esp + eax + 0x80]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x84]
push edx
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0045ef00
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, edx
sub eax, ecx
cmp eax, 4
jb 0x45c133
mov esi, dword [ecx]
cmp eax, esi
ja 0x45c16f
lea eax, [edx + edx*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea edx, [ecx + ecx*4]
shl eax, 2
shl edx, 2
sub eax, edx
xor edx, edx
div esi
mov dword [edi + 0x6c], eax
push ebp
lea eax, [esp + 0x84]
push 0x100
push eax
lea ecx, [esp + 0x34]
call fcn.005fc769
mov cl, byte [edi + 0x68]
test cl, cl
jne 0x45c0d6
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], 0
call fcn.0045ce10
jmp 0x45c45a
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub edx, ecx
cmp edx, 4
jae 0x45c185
push str.ERROR:_Invalid_Server_Data__1_
lea ecx, [edi + 0x74]
call fcn.005dd2ed
jmp 0x45c151
mov ecx, dword [ecx]
cmp ecx, edx
je 0x45c19a
push str.ERROR:_Invalid_Server_Data__2_
lea ecx, [edi + 0x74]
call fcn.005dd2ed
jmp 0x45c151
push ecx
push str.Downloaded__d_Bytes_n
call fcn.005d4217
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push eax
push edx
lea ecx, [eax + 4]
push ecx
call fcn.004934f0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
call fcn.0045ba30
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
add esp, 0x18
sub ebx, eax
mov cl, byte [eax]
test cl, cl
jne 0x45c402
mov esi, 1
cmp ebx, esi
jbe 0x45c3bb
lea ebp, [edi + 0xb0]
lea ecx, [esp + 0x54]
mov dword [esp + 0x48], 0xffffffff
mov word [esp + 0x4c], 0
call fcn.0041a0a0
lea ecx, [esp + 0x58]
mov byte [esp + 0x188], 9
call fcn.0041a0a0
lea ecx, [esp + 0x68]
mov byte [esp + 0x188], 0xa
call fcn.0041a0a0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x188], 0xb
call fcn.0041a0a0
lea ecx, [esp + 0x70]
mov byte [esp + 0x188], 0xc
call fcn.0041a0a0
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x188], 0xd
mov edx, dword [esi + ecx]
lea ecx, [esp + 0x48]
push edx
call fcn.004fa390
mov eax, dword [esp + 0x14]
add esi, 4
mov cx, word [esi + eax]
add esi, 2
mov word [esp + 0x4c], cx
lea ecx, [esp + 0x54]
mov dx, word [esi + eax]
add esi, 2
add eax, esi
mov word [esp + 0x50], dx
push eax
call fcn.005dd2ed
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax - 8]
lea esi, [esi + eax + 1]
lea eax, [esi + ecx]
lea ecx, [esp + 0x58]
push eax
call fcn.005dd2ed
mov edx, dword [esp + 0x58]
mov eax, dword [edx - 8]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + eax]
add esi, 4
mov dword [esp + 0x5c], ecx
mov edx, dword [esi + eax]
add esi, 4
mov dword [esp + 0x60], edx
mov cl, byte [esi + eax]
inc esi
add eax, esi
mov byte [esp + 0x64], cl
push eax
lea ecx, [esp + 0x6c]
call fcn.005dd2ed
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x6c]
mov eax, dword [edx - 8]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x14]
add eax, esi
push eax
call fcn.005dd2ed
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x70]
lea esi, [esi + eax + 1]
lea eax, [esi + edx]
push eax
call fcn.005dd2ed
mov eax, dword [esp + 0x70]
mov eax, dword [eax - 8]
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
lea esi, [esi + eax + 1]
lea eax, [edi + 1]
push eax
mov dx, word [esi + ecx]
mov ecx, ebp
mov word [esp + 0x7c], dx
add esi, 2
call fcn.0045ecf0
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [edi + edi*2]
shl ecx, 4
add ecx, edx
call fcn.0045f040
lea ecx, [esp + 0x70]
mov byte [esp + 0x188], 0x11
call fcn.005dd1b0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x188], 0x10
call fcn.005dd1b0
lea ecx, [esp + 0x68]
mov byte [esp + 0x188], 0xf
call fcn.005dd1b0
lea ecx, [esp + 0x58]
mov byte [esp + 0x188], 0xe
call fcn.005dd1b0
lea ecx, [esp + 0x54]
mov byte [esp + 0x188], 8
call fcn.005dd1b0
cmp esi, ebx
jb 0x45c1f0
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x188], 0x14
je 0x45c3ea
mov ecx, dword [esp + 0x1c]
sub ecx, eax
cmp ecx, 0x80
jbe 0x45c3e0
push eax
call fcn.005dd7a4
add esp, 4
jmp 0x45c3ea
push ecx
push eax
call fcn.0050d4e0
add esp, 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x188], 0xffffffff
call fcn.005fc6b6
mov al, 1
jmp 0x45c470
cmp cl, 1
jne 0x45c41b
inc eax
lea ecx, [edi + 0x74]
push eax
call fcn.005dd2ed
mov byte [esp + 0x188], 0x12
jmp 0x45c430
push str.ERROR:_Invalid_Data_Type
lea ecx, [edi + 0x74]
call fcn.005dd2ed
mov byte [esp + 0x188], 0x13
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
je 0x45c45a
mov eax, dword [esp + 0x1c]
sub eax, ecx
cmp eax, 0x80
jbe 0x45c450
push ecx
call fcn.005dd7a4
add esp, 4
jmp 0x45c45a
push eax
push ecx
call fcn.0050d4e0
add esp, 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x188], 0xffffffff
call fcn.005fc6b6
xor al, al
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x17c
ret