Function at 0x410300
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43b1a8
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov al, byte [ebp + 0x4418]
cmp al, 8
je 0x41034f
cmp al, 0x10
je 0x41034f
cmp al, 0x20
je 0x41034f
and eax, 0xff
push eax
push str.Invalid_number_of_bits_per_pixel:__d_n
push 0
push 0x44a3a0
call fcn.004063e0
add esp, 0x10
jmp 0x410baf
lea eax, [esp + 0x13]
push 1
push eax
mov ecx, ebp
call fcn.0040b880
mov al, byte [esp + 0x13]
xor esi, esi
lea edi, [ebp + 0x528]
test al, 1
je 0x410394
mov cl, byte [esi + ebp + 0x608]
test cl, cl
je 0x410394
push edi
call fcn.00421ee0
add esp, 4
test eax, eax
jne 0x410415
mov byte [esi + ebp + 0x608], al
mov al, byte [esp + 0x13]
shr al, 1
inc esi
add edi, 0x38
cmp esi, 4
mov byte [esp + 0x13], al
jl 0x410369
cmp al, 8
jne 0x410656
cmp byte [ebp + 0x4419], 0x18
jne 0x41045d
mov edi, 0xff
cmp word [ebp + 0x441c], di
jne 0x41045d
cmp word [ebp + 0x441e], di
jne 0x41045d
cmp word [ebp + 0x4420], di
jne 0x41045d
lea eax, [esp + 0x3c]
push 3
push eax
mov ecx, ebp
call fcn.0040b880
mov esi, dword [esp + 0x3e]
mov ecx, dword [esp + 0x3d]
mov edx, dword [esp + 0x3c]
and esi, edi
or esi, 0x200
and ecx, edi
shl esi, 8
or esi, ecx
and edx, edi
shl esi, 8
or esi, edx
jmp 0x4105ad
lea ecx, [esi + 0x18]
lea edx, [ecx*8]
sub edx, ecx
mov ebp, dword [ebp + edx*8]
test ebp, ebp
je 0x410443
push ebp
push str.zlib_inflateEnd___error:__s_n
push 0
push 0x44a3a0
call fcn.004063e0
add esp, 0x10
jmp 0x410baf
push eax
push str.zlib_inflateEnd___error:__d_n
push 0
push 0x44a3a0
call fcn.004063e0
add esp, 0x10
jmp 0x410baf
xor eax, eax
lea ecx, [esp + 0x18]
mov al, byte [ebp + 0x4418]
shr eax, 3
push eax
push ecx
mov ecx, ebp
call fcn.0040b880
mov bl, byte [ebp + 0x4418]
mov ax, word [ebp + 0x441c]
mov dx, word [ebp + 0x441e]
mov cl, byte [ebp + 0x4424]
mov si, word [ebp + 0x4420]
cmp bl, 8
je 0x41052c
cmp bl, 0x10
je 0x410520
mov edi, dword [esp + 0x18]
mov ebx, edx
mov edx, edi
and esi, 0xffff
shr edx, cl
and eax, 0xffff
mov cl, byte [ebp + 0x4423]
mov dword [esp + 0x14], eax
and ebx, 0xffff
and edx, esi
mov eax, edx
shl eax, 8
sub eax, edx
xor edx, edx
div esi
mov edx, edi
shr edx, cl
mov cl, byte [ebp + 0x4422]
shr edi, cl
mov ecx, dword [esp + 0x14]
and edx, ebx
and edi, ecx
mov esi, eax
mov eax, edx
shl eax, 8
sub eax, edx
xor edx, edx
div ebx
and esi, 0xff
xor edx, edx
or esi, 0x200
shl esi, 8
and eax, 0xff
or esi, eax
mov eax, edi
shl eax, 8
sub eax, edi
shl esi, 8
div ecx
jmp 0x4105a6
mov edi, dword [esp + 0x18]
and edi, 0xffff
jmp 0x410536
mov edi, dword [esp + 0x18]
and edi, 0xff
mov ebx, edx
mov edx, edi
shr edx, cl
and esi, 0xffff
and eax, 0xffff
mov dword [esp + 0x14], eax
mov cl, byte [ebp + 0x4423]
and ebx, 0xffff
and edx, esi
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv esi
mov edx, edi
shr edx, cl
mov cl, byte [ebp + 0x4422]
shr edi, cl
mov ecx, dword [esp + 0x14]
and edx, ebx
and edi, ecx
mov esi, eax
mov eax, edx
shl eax, 8
sub eax, edx
and esi, 0xff
cdq
idiv ebx
or esi, 0x200
shl esi, 8
and eax, 0xff
or esi, eax
mov eax, edi
shl eax, 8
sub eax, edi
cdq
shl esi, 8
idiv ecx
and eax, 0xff
or esi, eax
lea edx, [ebp + 0x1e4]
lea ecx, [esp + 0x34]
push edx
call fcn.00408cb0
mov eax, dword [ebp + 0x3a1c]
mov ecx, dword [ebp + 0x3a20]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x68], 0
call fcn.00408d20
mov edx, dword [ebp + 0x3a24]
mov eax, dword [ebp + 0x3a20]
push edx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 1
call fcn.00408d60
mov eax, dword [esp + 0x68]
xor ecx, ecx
xor edx, edx
push esi
mov cx, word [eax + 6]
mov dx, word [eax + 4]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x74], 2
call fcn.0040c900
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 1
call fcn.00408d90
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 0
call fcn.00408d40
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], 0xffffffff
call fcn.00408cd0
jmp 0x410baf
cmp al, 9
jne 0x410685
mov eax, dword [esp + 0x68]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 6]
mov dx, word [eax + 4]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
mov ecx, ebp
call fcn.004123e0
jmp 0x410baf
jb 0x410691
push str.Tight_encoding:_bad_subencoding_value_received._n
jmp 0x410ba0
test al, 4
je 0x41070b
lea eax, [esp + 0x3c]
push 1
push eax
mov ecx, ebp
call fcn.0040b880
mov eax, dword [esp + 0x3c]
and eax, 0xff
sub eax, 0
je 0x4106f7
dec eax
je 0x4106dc
dec eax
je 0x4106c1
push str.Tight_encoding:_unknown_filter_code_received._n
jmp 0x410ba0
mov ebx, dword [esp + 0x68]
xor ecx, ecx
xor edx, edx
mov cx, word [ebx + 6]
mov dx, word [ebx + 4]
push ecx
push edx
mov ecx, ebp
call fcn.00410d00
jmp 0x410724
mov ebx, dword [esp + 0x68]
xor eax, eax
xor ecx, ecx
mov ax, word [ebx + 6]
mov cx, word [ebx + 4]
push eax
push ecx
mov ecx, ebp
call fcn.00410d90
jmp 0x410724
mov ebx, dword [esp + 0x68]
xor edx, edx
xor eax, eax
mov dx, word [ebx + 6]
mov ax, word [ebx + 4]
push edx
push eax
jmp 0x41071d
mov ebx, dword [esp + 0x68]
xor ecx, ecx
xor edx, edx
mov cx, word [ebx + 6]
mov dx, word [ebx + 4]
push ecx
push edx
mov ecx, ebp
call fcn.00410c70
mov edi, eax
test edi, edi
jne 0x410734
push str.Tight_encoding:_error_receiving_palette._n
jmp 0x410ba0
xor eax, eax
mov ax, word [ebx + 4]
imul eax, edi
add eax, 7
cdq
and edx, 7
add eax, edx
mov esi, eax
xor eax, eax
mov ax, word [ebx + 6]
sar esi, 3
imul eax, esi
cmp eax, 0xc
mov dword [esp + 0x2c], esi
jge 0x410895
push eax
mov ecx, ebp
call fcn.0040bb90
xor eax, eax
mov ecx, dword [ebp + 0x1c4]
mov ax, word [ebx + 6]
imul eax, esi
push eax
push ecx
mov ecx, ebp
call fcn.0040b880
xor edx, edx
xor eax, eax
mov dx, word [ebx + 6]
mov ax, word [ebx + 4]
imul edx, eax
shl edx, 2
push edx
mov ecx, ebp
call fcn.0040bc60
xor ecx, ecx
mov cx, word [ebx + 6]
push ecx
mov ecx, ebp
call dword [ebp + 0x60c]
lea edx, [ebp + 0x1e4]
lea ecx, [esp + 0x3c]
push edx
call fcn.00408cb0
mov eax, dword [ebp + 0x3a1c]
mov ecx, dword [ebp + 0x3a20]
push eax
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x68], 3
call fcn.00408d20
mov edx, dword [ebp + 0x3a24]
mov eax, dword [ebp + 0x3a20]
push edx
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 4
call fcn.00408d60
mov ecx, dword [ebp + 0x274]
xor edi, edi
mov di, word [ebx + 2]
xor edx, edx
mov dx, word [ebx + 6]
mov dword [esp + 0x68], ecx
add edx, edi
cmp edi, edx
jge 0x410868
xor esi, esi
xor eax, eax
mov si, word [ebx]
mov ax, word [ebx + 4]
add eax, esi
cmp esi, eax
jge 0x410855
mov ecx, dword [esp + 0x68]
mov eax, dword [ebp + 0x3a20]
mov edx, dword [ecx]
push edx
push edi
push esi
push eax
call dword [sym.imp.GDI32.dll_SetPixelV]
mov edx, dword [esp + 0x68]
xor ecx, ecx
mov cx, word [ebx + 4]
add edx, 4
mov dword [esp + 0x68], edx
xor edx, edx
mov dx, word [ebx]
inc esi
add ecx, edx
cmp esi, ecx
jl 0x410822
xor eax, eax
xor ecx, ecx
mov ax, word [ebx + 6]
mov cx, word [ebx + 2]
inc edi
add eax, ecx
cmp edi, eax
jl 0x410811
lea ecx, [esp + 0x34]
call fcn.00408d90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 3
call fcn.00408d40
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], 0xffffffff
call fcn.00408cd0
jmp 0x410baf
mov ecx, ebp
call fcn.00410c00
test eax, eax
mov dword [esp + 0x18], eax
jg 0x4108ae
push str.Tight_encoding:_bad_data_received_from_server._n
jmp 0x410ba0
mov al, byte [esp + 0x13]
and eax, 3
mov dword [esp + 0x68], eax
mov cl, byte [eax + ebp + 0x608]
lea edx, [eax*8]
sub edx, eax
test cl, cl
lea esi, [ebp + edx*8 + 0x528]
mov dword [esp + 0x34], esi
jne 0x41093e
push 0x38
xor eax, eax
push str.1.1.4
push esi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
call fcn.00422040
add esp, 0xc
test eax, eax
je 0x410932
mov esi, dword [esi + 0x18]
test esi, esi
je 0x410918
push esi
push str.zlib_inflateInit___error:__s._n
push 0
push 0x44a3a0
call fcn.004063e0
add esp, 0x10
jmp 0x410baf
push eax
push str.zlib_inflateInit___error:__d._n
push 0
push 0x44a3a0
call fcn.004063e0
add esp, 0x10
jmp 0x410baf
mov eax, dword [esp + 0x68]
mov byte [eax + ebp + 0x608], 1
lea ecx, [edi + edi*2]
xor edx, edx
lea eax, [edi + ecx*8]
add edi, 0x20
shl eax, 0xe
div edi
mov ecx, ebp
mov edi, eax
and edi, 0xfffffffc
push edi
mov dword [esp + 0x28], edi
call fcn.0040bb90
mov eax, 0x64000
mov ecx, ebp
sub eax, edi
push eax
call fcn.0040bc60
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0x200
cmp eax, 0x200
jg 0x41098f
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
lea eax, [ebp + 0x328]
push edx
push eax
mov ecx, ebp
call fcn.0040b880
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
lea ecx, [ebp + 0x328]
mov edx, edi
mov dword [esi], ecx
mov ecx, dword [ebp + 0x1c4]
add ecx, eax
sub edx, eax
push 2
push esi
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
call fcn.00422060
add esp, 8
cmp eax, 0xfffffffb
je 0x410b81
jmp 0x4109eb
mov edi, dword [esp + 0x24]
test eax, eax
je 0x4109f8
cmp eax, 1
jne 0x410bc4
mov edx, dword [esi + 0x10]
mov eax, edi
sub eax, edx
xor edx, edx
div dword [esp + 0x2c]
mov ecx, ebp
push eax
mov dword [esp + 0x18], eax
call dword [ebp + 0x60c]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x10]
imul eax, dword [esp + 0x2c]
mov ecx, edi
sub ecx, edx
sub ecx, eax
test ecx, ecx
mov dword [esp + 0x20], ecx
jle 0x410a47
mov edi, dword [ebp + 0x1c4]
lea esi, [eax + edi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x34]
lea ecx, [ebp + 0x1e4]
push ecx
lea ecx, [esp + 0x48]
call fcn.00408cb0
mov edx, dword [ebp + 0x3a1c]
mov eax, dword [ebp + 0x3a20]
push edx
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x68], 5
call fcn.00408d20
mov ecx, dword [ebp + 0x3a24]
mov edx, dword [ebp + 0x3a20]
push ecx
push edx
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 6
call fcn.00408d60
mov eax, dword [ebp + 0x274]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
xor eax, eax
add edx, ecx
mov ax, word [ebx + 2]
add edx, eax
lea edi, [ecx + eax]
cmp edi, edx
jge 0x410b14
xor esi, esi
xor edx, edx
mov si, word [ebx]
mov dx, word [ebx + 4]
add edx, esi
cmp esi, edx
jge 0x410af9
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x3a20]
mov ecx, dword [eax]
push ecx
push edi
push esi
push edx
call dword [sym.imp.GDI32.dll_SetPixelV]
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov ax, word [ebx + 4]
add ecx, 4
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov cx, word [ebx]
inc esi
add eax, ecx
cmp esi, eax
jl 0x410ac6
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
xor edx, edx
inc edi
mov dx, word [ebx + 2]
add edx, esi
add edx, ecx
cmp edi, edx
jl 0x410ab5
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
add ecx, eax
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x48]
call fcn.00408d90
lea ecx, [esp + 0x50]
mov byte [esp + 0x60], 5
call fcn.00408d40
lea ecx, [esp + 0x44]
mov dword [esp + 0x60], 0xffffffff
call fcn.00408cd0
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x410b7d
mov ecx, dword [ebp + 0x1c4]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add ecx, eax
sub edx, eax
push 2
push esi
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
call fcn.00422060
add esp, 8
cmp eax, 0xfffffffb
jne 0x4109e7
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x410978
mov ecx, dword [esp + 0x68]
xor eax, eax
mov ax, word [ebx + 6]
cmp ecx, eax
je 0x410baf
push str.Tight_encoding:_wrong_number_of_scan_lines._n
push 0
push 0x44a3a0
call fcn.004063e0
add esp, 0xc
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 4
mov esi, dword [esi + 0x18]
test esi, esi
je 0x410be2
push esi
push str.zlib_inflate___error:__s._n
push 0
push 0x44a3a0
call fcn.004063e0
add esp, 0x10
jmp 0x410baf
push eax
push str.zlib_inflate___error:__d._n
push 0
push 0x44a3a0
call fcn.004063e0
add esp, 0x10
jmp 0x410baf