Function at 0x410670
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43b8b8
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 + 0x4730]
cmp al, 8
je 0x4106bf
cmp al, 0x10
je 0x4106bf
cmp al, 0x20
je 0x4106bf
and eax, 0xff
push eax
push str.Invalid_number_of_bits_per_pixel:__d_n
push 0
push 0x44a470
call fcn.00406360
add esp, 0x10
jmp 0x410f1f
lea eax, [esp + 0x13]
push 1
push eax
mov ecx, ebp
call fcn.0040bbc0
mov al, byte [esp + 0x13]
xor esi, esi
lea edi, [ebp + 0x840]
test al, 1
je 0x410704
mov cl, byte [esi + ebp + 0x920]
test cl, cl
je 0x410704
push edi
call fcn.00422450
add esp, 4
test eax, eax
jne 0x410785
mov byte [esi + ebp + 0x920], al
mov al, byte [esp + 0x13]
shr al, 1
inc esi
add edi, 0x38
cmp esi, 4
mov byte [esp + 0x13], al
jl 0x4106d9
cmp al, 8
jne 0x4109c6
cmp byte [ebp + 0x4731], 0x18
jne 0x4107cd
mov edi, 0xff
cmp word [ebp + 0x4734], di
jne 0x4107cd
cmp word [ebp + 0x4736], di
jne 0x4107cd
cmp word [ebp + 0x4738], di
jne 0x4107cd
lea edx, [esp + 0x3c]
push 3
push edx
mov ecx, ebp
call fcn.0040bbc0
mov esi, dword [esp + 0x3e]
mov eax, dword [esp + 0x3d]
mov ecx, dword [esp + 0x3c]
and esi, edi
or esi, 0x200
and eax, edi
shl esi, 8
or esi, eax
and ecx, edi
shl esi, 8
or esi, ecx
jmp 0x41091d
lea ecx, [esi*8]
sub ecx, esi
mov ebp, dword [ebp + ecx*8 + 0x858]
test ebp, ebp
je 0x4107b3
push ebp
push str.zlib_inflateEnd___error:__s_n
push 0
push 0x44a470
call fcn.00406360
add esp, 0x10
jmp 0x410f1f
push eax
push str.zlib_inflateEnd___error:__d_n
push 0
push 0x44a470
call fcn.00406360
add esp, 0x10
jmp 0x410f1f
xor edx, edx
lea eax, [esp + 0x18]
mov dl, byte [ebp + 0x4730]
mov ecx, ebp
shr edx, 3
push edx
push eax
call fcn.0040bbc0
mov bl, byte [ebp + 0x4730]
mov ax, word [ebp + 0x4734]
mov dx, word [ebp + 0x4736]
mov cl, byte [ebp + 0x473c]
mov si, word [ebp + 0x4738]
cmp bl, 8
je 0x41089c
cmp bl, 0x10
je 0x410890
mov edi, dword [esp + 0x18]
mov ebx, edx
mov edx, edi
and esi, 0xffff
shr edx, cl
and eax, 0xffff
mov cl, byte [ebp + 0x473b]
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 + 0x473a]
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 0x410916
mov edi, dword [esp + 0x18]
and edi, 0xffff
jmp 0x4108a6
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 + 0x473b]
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 + 0x473a]
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 ecx, [ebp + 0x4fc]
push ecx
lea ecx, [esp + 0x38]
call fcn.00408db0
mov edx, dword [ebp + 0x3d34]
mov eax, dword [ebp + 0x3d38]
push edx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x68], 0
call fcn.00408e20
mov ecx, dword [ebp + 0x3d3c]
mov edx, dword [ebp + 0x3d38]
push ecx
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 1
call fcn.00408e60
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.0040cc40
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 1
call fcn.00408e90
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 0
call fcn.00408e40
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], 0xffffffff
call fcn.00408dd0
jmp 0x410f1f
cmp al, 9
jne 0x4109f5
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.00412750
jmp 0x410f1f
jb 0x410a01
push str.Tight_encoding:_bad_subencoding_value_received._n
jmp 0x410f10
test al, 4
je 0x410a7b
lea eax, [esp + 0x3c]
push 1
push eax
mov ecx, ebp
call fcn.0040bbc0
mov eax, dword [esp + 0x3c]
and eax, 0xff
sub eax, 0
je 0x410a67
dec eax
je 0x410a4c
dec eax
je 0x410a31
push str.Tight_encoding:_unknown_filter_code_received._n
jmp 0x410f10
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.00411070
jmp 0x410a94
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.00411100
jmp 0x410a94
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 0x410a8d
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.00410fe0
mov edi, eax
test edi, edi
jne 0x410aa4
push str.Tight_encoding:_error_receiving_palette._n
jmp 0x410f10
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 0x410c05
push eax
mov ecx, ebp
call fcn.0040bed0
xor eax, eax
mov ecx, dword [ebp + 0x4dc]
mov ax, word [ebx + 6]
imul eax, esi
push eax
push ecx
mov ecx, ebp
call fcn.0040bbc0
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.0040bfa0
xor ecx, ecx
mov cx, word [ebx + 6]
push ecx
mov ecx, ebp
call dword [ebp + 0x924]
lea edx, [ebp + 0x4fc]
lea ecx, [esp + 0x3c]
push edx
call fcn.00408db0
mov eax, dword [ebp + 0x3d34]
mov ecx, dword [ebp + 0x3d38]
push eax
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x68], 3
call fcn.00408e20
mov edx, dword [ebp + 0x3d3c]
mov eax, dword [ebp + 0x3d38]
push edx
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 4
call fcn.00408e60
mov ecx, dword [ebp + 0x58c]
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 0x410bd8
xor esi, esi
xor eax, eax
mov si, word [ebx]
mov ax, word [ebx + 4]
add eax, esi
cmp esi, eax
jge 0x410bc5
mov ecx, dword [esp + 0x68]
mov eax, dword [ebp + 0x3d38]
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 0x410b92
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 0x410b81
lea ecx, [esp + 0x34]
call fcn.00408e90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 3
call fcn.00408e40
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], 0xffffffff
call fcn.00408dd0
jmp 0x410f1f
mov ecx, ebp
call fcn.00410f70
test eax, eax
mov dword [esp + 0x18], eax
jg 0x410c1e
push str.Tight_encoding:_bad_data_received_from_server._n
jmp 0x410f10
mov al, byte [esp + 0x13]
and eax, 3
mov dword [esp + 0x68], eax
mov cl, byte [eax + ebp + 0x920]
lea edx, [eax*8]
sub edx, eax
test cl, cl
lea esi, [ebp + edx*8 + 0x840]
mov dword [esp + 0x34], esi
jne 0x410cae
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.004225b0
add esp, 0xc
test eax, eax
je 0x410ca2
mov esi, dword [esi + 0x18]
test esi, esi
je 0x410c88
push esi
push str.zlib_inflateInit___error:__s._n
push 0
push 0x44a470
call fcn.00406360
add esp, 0x10
jmp 0x410f1f
push eax
push str.zlib_inflateInit___error:__d._n
push 0
push 0x44a470
call fcn.00406360
add esp, 0x10
jmp 0x410f1f
mov eax, dword [esp + 0x68]
mov byte [eax + ebp + 0x920], 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.0040bed0
mov eax, 0x64000
mov ecx, ebp
sub eax, edi
push eax
call fcn.0040bfa0
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 0x410cff
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
lea eax, [ebp + 0x640]
push edx
push eax
mov ecx, ebp
call fcn.0040bbc0
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 + 0x640]
mov edx, edi
mov dword [esi], ecx
mov ecx, dword [ebp + 0x4dc]
add ecx, eax
sub edx, eax
push 2
push esi
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
call fcn.004225d0
add esp, 8
cmp eax, 0xfffffffb
je 0x410ef1
jmp 0x410d5b
mov edi, dword [esp + 0x24]
test eax, eax
je 0x410d68
cmp eax, 1
jne 0x410f34
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 + 0x924]
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 0x410db7
mov edi, dword [ebp + 0x4dc]
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 + 0x4fc]
push ecx
lea ecx, [esp + 0x48]
call fcn.00408db0
mov edx, dword [ebp + 0x3d34]
mov eax, dword [ebp + 0x3d38]
push edx
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x68], 5
call fcn.00408e20
mov ecx, dword [ebp + 0x3d3c]
mov edx, dword [ebp + 0x3d38]
push ecx
push edx
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 6
call fcn.00408e60
mov eax, dword [ebp + 0x58c]
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 0x410e84
xor esi, esi
xor edx, edx
mov si, word [ebx]
mov dx, word [ebx + 4]
add edx, esi
cmp esi, edx
jge 0x410e69
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x3d38]
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 0x410e36
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 0x410e25
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.00408e90
lea ecx, [esp + 0x50]
mov byte [esp + 0x60], 5
call fcn.00408e40
lea ecx, [esp + 0x44]
mov dword [esp + 0x60], 0xffffffff
call fcn.00408dd0
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x410eed
mov ecx, dword [ebp + 0x4dc]
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.004225d0
add esp, 8
cmp eax, 0xfffffffb
jne 0x410d57
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x410ce8
mov ecx, dword [esp + 0x68]
xor eax, eax
mov ax, word [ebx + 6]
cmp ecx, eax
je 0x410f1f
push str.Tight_encoding:_wrong_number_of_scan_lines._n
push 0
push 0x44a470
call fcn.00406360
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 0x410f52
push esi
push str.zlib_inflate___error:__s._n
push 0
push 0x44a470
call fcn.00406360
add esp, 0x10
jmp 0x410f1f
push eax
push str.zlib_inflate___error:__d._n
push 0
push 0x44a470
call fcn.00406360
add esp, 0x10
jmp 0x410f1f