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

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x497489
mov eax, dword [esi + 0xe4]
cmp eax, dword [esi + 0xd0]
jae 0x497489
push edi
push 2
pop edx
lea ecx, [esi + 0x74]
call fcn.004a50a0
test eax, eax
jne 0x497476
mov eax, dword [esi + 0x84]
test eax, eax
jne 0x497433
push dword [esi + 0xb0]
mov edx, dword [esi + 0xac]
mov ecx, esi
call fcn.0049cff7
mov eax, dword [esi + 0xac]
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0xb0]
pop ecx
mov dword [esi + 0x84], eax
jmp 0x4973ec
mov ecx, dword [esi + 0xb0]
cmp ecx, eax
je 0x497466
mov edx, dword [esi + 0xac]
sub ecx, eax
push ecx
mov ecx, esi
call fcn.0049cff7
mov eax, dword [esi + 0xac]
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0xb0]
pop ecx
mov dword [esi + 0x84], eax
and dword [esi + 0x154], 0
mov ecx, esi
pop edi
pop esi
jmp 0x49f540
mov edx, dword [esi + 0x8c]
mov ecx, esi
test edx, edx
jne 0x49748b
mov edx, str.zlib_error
jmp 0x49748b
pop esi
ret
call fcn.00499490
int3
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x104]
inc eax
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], eax
xor edx, edx
lea ecx, [esi + 0x74]
call fcn.004a50a0
test eax, eax
jne 0x49c86e
cmp dword [esi + 0x84], eax
jne 0x49c821
push dword [esi + 0xb0]
mov edx, dword [esi + 0xac]
mov ecx, esi
call fcn.0049cff7
mov eax, dword [esi + 0xac]
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0xb0]
pop ecx
mov dword [esi + 0x84], eax
cmp dword [esi + 0x78], 0
jne 0x49c7db
mov ecx, dword [esi + 0xe8]
test ecx, ecx
je 0x49c843
mov eax, dword [esi + 0xec]
mov dword [esi + 0xe8], eax
mov dword [esi + 0xec], ecx
mov ecx, esi
call fcn.0049cdd8
mov eax, dword [esi + 0x154]
mov ecx, dword [esi + 0x150]
inc eax
mov dword [esi + 0x154], eax
test ecx, ecx
je 0x49c881
cmp eax, ecx
jb 0x49c881
pop edi
mov ecx, esi
pop esi
jmp 0x4973ce
mov edx, dword [esi + 0x8c]
mov ecx, esi
test edx, edx
jne 0x49c884
mov edx, str.zlib_error
jmp 0x49c884
pop edi
pop esi
ret
call fcn.00499490
int3
sub esp, 0x38
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0x10], connect
push edi
mov edi, dword [edx + 4]
xor ebx, ebx
movzx edx, byte [edx + 0xb]
mov cl, byte [ebp + 0x125]
add edx, 7
mov esi, dword [ebp + 0xec]
mov eax, dword [ebp + 0xe8]
shr edx, 3
mov dword [esp + 0x18], ebp
mov byte [esp + 0x13], cl
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
test cl, 8
je 0x49db2a
cmp cl, 8
je 0x49db2a
mov dword [esp + 0x14], ebx
test edi, edi
je 0x49db2a
mov edx, ebx
mov ebp, ebx
movzx ecx, byte [esi + ebp + 1]
mov eax, 0x100
sub eax, ecx
cmp ecx, 0x80
cmovb eax, ecx
add edx, eax
inc ebp
cmp ebp, edi
jb 0x49dafe
mov ebp, dword [esp + 0x18]
mov cl, byte [esp + 0x13]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
cmp cl, 0x10
jne 0x49dccf
mov ecx, dword [ebp + 0xf0]
lea eax, [esi + 1]
inc ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], eax
mov esi, eax
test edx, edx
je 0x49db64
mov edi, edx
mov dword [esp + 0x38], edx
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x49db51
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x38], edi
jae 0x49db98
sub eax, ecx
sub esi, ecx
mov dword [esp + 0x34], eax
mov eax, edi
sub eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov edx, eax
mov dword [esp + 0x40], eax
mov al, byte [esi + ecx]
sub al, byte [ecx + ebp]
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x49db82
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov esi, dword [ebp + 0xf0]
mov cl, byte [esp + 0x13]
mov dword [esp + 0x1c], esi
test cl, 0x20
je 0x49dc30
mov eax, dword [ebp + 0xf4]
mov esi, ebx
inc eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], eax
test edi, edi
je 0x49dc1c
mov ebx, dword [esp + 0x24]
mov ebp, eax
mov ecx, dword [esp + 0x2c]
inc ebx
mov edx, dword [esp + 0x14]
sub ecx, ebx
mov dword [esp + 0x38], ecx
mov al, byte [ebx]
sub al, byte [ecx + ebx + 1]
mov byte [ebp], al
inc ebp
movzx ecx, al
inc ebx
mov eax, 0x100
sub eax, ecx
cmp ecx, 0x80
cmovb eax, ecx
add esi, eax
cmp esi, edx
ja 0x49dc0e
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
inc eax
mov dword [esp + 0x40], eax
cmp eax, edi
jb 0x49dbd9
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov ebp, dword [esp + 0x18]
mov cl, byte [esp + 0x13]
cmp esi, dword [esp + 0x14]
jae 0x49dc30
mov eax, dword [ebp + 0xf4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
cmp cl, 0x40
jne 0x49de0a
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x3c], eax
mov ecx, eax
mov eax, dword [ebp + 0xf8]
inc eax
inc esi
mov dword [esp + 0x30], eax
test edx, edx
je 0x49dc89
mov ebx, edx
mov ebp, eax
mov edi, ecx
mov cl, byte [esi]
mov al, byte [edi]
shr cl, 1
sub al, cl
mov byte [ebp], al
inc ebp
inc esi
inc edi
sub edx, 1
jne 0x49dc5e
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
cmp ebx, edi
jae 0x49dcc4
sub dword [esp + 0x3c], esi
sub ecx, esi
mov ebp, dword [esp + 0x3c]
sub eax, esi
sub edi, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
mov edx, eax
mov ebx, ecx
movzx eax, byte [esi]
movzx ecx, byte [esi + ebp]
add ecx, eax
mov al, byte [ebx + esi]
shr ecx, 1
sub al, cl
mov byte [edx + esi], al
inc esi
sub edi, 1
jne 0x49dca7
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0xf8]
jmp 0x49e1ac
test cl, 0x10
je 0x49ddbb
inc esi
mov eax, ebx
mov dword [esp + 0x3c], esi
mov ecx, ebx
mov dword [esp + 0x38], esi
mov esi, dword [ebp + 0xf0]
inc esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
test edx, edx
je 0x49dd42
mov edi, dword [esp + 0x38]
mov ebp, ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], edx
mov al, byte [edi]
mov byte [esi], al
movzx ecx, al
mov eax, 0x100
sub eax, ecx
cmp ecx, 0x80
cmovb eax, ecx
add ebp, eax
inc edi
inc esi
sub edx, 1
jne 0x49dd06
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x28]
cmp ecx, edi
jae 0x49dda3
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub ebx, esi
mov edx, dword [esp + 0x14]
sub ecx, esi
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
mov al, byte [ebx + esi]
sub al, byte [ecx + esi]
movzx ecx, al
mov byte [esi], al
mov eax, 0x100
sub eax, ecx
cmp ecx, 0x80
cmovb eax, ecx
add ebp, eax
cmp ebp, edx
ja 0x49dd91
mov eax, dword [esp + 0x34]
inc esi
mov ecx, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x34], eax
cmp eax, edi
jb 0x49dd5e
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov cl, byte [esp + 0x13]
cmp eax, dword [esp + 0x14]
jae 0x49ddbb
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xf0]
mov dword [esp + 0x1c], eax
cmp cl, 0x20
jne 0x49dba6
mov esi, dword [ebp + 0xf4]
mov dword [esp + 0x1c], esi
inc esi
mov dword [esp + 0x40], esi
mov esi, ebx
test edi, edi
je 0x49de0a
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x40]
inc edx
mov ebx, dword [esp + 0x24]
mov al, byte [ebx + esi + 1]
sub al, byte [edx]
inc edx
mov byte [ebp], al
inc ebp
inc esi
cmp esi, edi
jb 0x49dde6
mov ebp, dword [esp + 0x18]
xor ebx, ebx
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0xf4]
mov dword [esp + 0x1c], eax
test cl, 0x40
je 0x49df2f
mov eax, dword [esp + 0x24]
mov ecx, ebx
mov esi, dword [ebp + 0xf8]
inc eax
mov dword [esp + 0x40], eax
inc esi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
test edx, edx
je 0x49de94
mov ebp, dword [esp + 0x30]
mov edi, ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov edx, eax
mov al, byte [edx]
mov cl, byte [ebp]
shr al, 1
sub cl, al
mov eax, 0x100
mov byte [esi], cl
inc esi
movzx ecx, cl
inc edx
sub eax, ecx
inc ebp
cmp ecx, 0x80
cmovb eax, ecx
add edi, eax
sub dword [esp + 0x34], 1
jne 0x49de4e
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x38], edi
jae 0x49df15
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
sub dword [esp + 0x30], ebp
sub eax, ebp
mov ebx, dword [esp + 0x34]
sub esi, ebp
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
movzx ecx, byte [eax + ebp]
movzx eax, byte [ebp]
add ecx, eax
mov eax, dword [esp + 0x30]
shr ecx, 1
mov al, byte [eax + ebp]
sub al, cl
mov byte [edx + ebp], al
inc ebp
movzx ecx, al
mov eax, 0x100
sub eax, ecx
cmp ecx, 0x80
cmovb eax, ecx
add ebx, eax
cmp ebx, esi
ja 0x49df01
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
cmp eax, edi
mov eax, dword [esp + 0x40]
jb 0x49debe
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x34], ebx
xor ebx, ebx
mov ecx, dword [esp + 0x34]
jmp 0x49df19
mov esi, dword [esp + 0x14]
cmp ecx, esi
jae 0x49df39
mov eax, dword [ebp + 0xf8]
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
jmp 0x49df3d
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
jmp 0x49df41
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 0x13]
cmp cl, 0x80
jne 0x49e03e
mov ecx, dword [esp + 0x24]
mov esi, dword [ebp + 0xfc]
inc ecx
mov eax, dword [esp + 0x2c]
inc esi
inc eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], eax
test edx, edx
je 0x49df8d
mov ebx, edx
mov edi, eax
mov al, byte [ecx]
sub al, byte [edi]
mov byte [esi], al
inc esi
inc edi
inc ecx
sub edx, 1
jne 0x49df6f
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
cmp ebx, edi
jae 0x49e033
mov edx, dword [esp + 0x3c]
sub esi, ecx
sub dword [esp + 0x40], edx
sub eax, edx
sub edi, ebx
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x38]
mov ebp, esi
mov dword [esp + 0x3c], esi
movzx esi, byte [eax + edx]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], esi
movzx ecx, byte [eax + edx]
movzx eax, byte [edx]
sub esi, ecx
mov dword [esp + 0x30], eax
inc edx
mov dword [esp + 0x38], ecx
mov ecx, eax
sub ecx, dword [esp + 0x38]
mov eax, esi
mov dword [esp + 0x3c], edx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x2c], eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x28], eax
lea eax, [ecx + esi]
cdq
mov ecx, eax
mov eax, dword [esp + 0x2c]
xor ecx, edx
sub ecx, edx
mov edx, dword [esp + 0x28]
cmp eax, edx
jg 0x49e009
cmp eax, ecx
jle 0x49e018
mov eax, dword [esp + 0x38]
cmp edx, ecx
cmovle eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov al, byte [ebx]
sub al, byte [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov byte [ebx + ebp], al
inc ebx
mov eax, dword [esp + 0x34]
sub edi, 1
jne 0x49dfb1
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0xfc]
jmp 0x49e1ac
test cl, cl
jns 0x49e1ac
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 0xfc]
inc ecx
mov edi, dword [esp + 0x2c]
inc eax
inc edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
test edx, edx
je 0x49e0c7
mov edi, dword [esp + 0x2c]
mov ebp, eax
mov dword [esp + 0x38], edx
mov esi, ecx
mov al, byte [esi]
sub al, byte [edi]
mov byte [ebp], al
inc ebp
movzx ecx, al
inc edi
mov eax, 0x100
inc esi
sub eax, ecx
cmp ecx, 0x80
cmovb eax, ecx
add ebx, eax
sub edx, 1
jne 0x49e083
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x28]
cmp dword [esp + 0x38], edi
jae 0x49e1a0
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
sub edx, esi
sub dword [esp + 0x40], esi
sub eax, ecx
mov dword [esp + 0x2c], edx
mov ebp, eax
mov dword [esp + 0x34], eax
jmp 0x49e0f1
mov esi, dword [esp + 0x3c]
movzx ecx, byte [edx + esi]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], ecx
movzx edx, byte [eax + esi]
movzx eax, byte [esi]
inc esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], esi
mov esi, ecx
mov ecx, eax
mov dword [esp + 0x20], edx
sub esi, edx
sub ecx, edx
mov eax, esi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x28], eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x24], eax
lea eax, [ecx + esi]
cdq
mov ecx, eax
mov eax, dword [esp + 0x28]
xor ecx, edx
sub ecx, edx
mov edx, dword [esp + 0x24]
cmp eax, edx
jg 0x49e149
cmp eax, ecx
jle 0x49e158
mov eax, dword [esp + 0x20]
cmp edx, ecx
cmovle eax, dword [esp + 0x44]
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
mov al, byte [edx]
sub al, byte [esp + 0x34]
mov byte [edx + ebp], al
inc edx
movzx ecx, al
mov eax, 0x100
sub eax, ecx
mov dword [esp + 0x30], edx
cmp ecx, 0x80
cmovb eax, ecx
add ebx, eax
cmp ebx, esi
ja 0x49e19c
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x38], eax
cmp eax, edi
jb 0x49e0ed
mov ebp, dword [esp + 0x18]
cmp ebx, esi
jb 0x49e033
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov ecx, ebp
mov edx, eax
pop ebp
pop ebx
add esp, 0x38
jmp 0x49c7ca
push esi
mov esi, dword [ecx + 0x14c]
test esi, esi
je 0x49f557
push ecx
mov ecx, esi
call dword [0x4b25a8]
call esi
pop ecx
pop esi
ret