Function at 0x1028dd70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sym.tk85.dll_Tk_PhotoGetImage
add esp, 8
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0xc]
imul ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 8]
imul edx, dword [eax + 0x10]
add ecx, edx
mov eax, dword [ebp + 0xc]
add ecx, dword [eax]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x10]
sub edx, dword [ecx + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x14]
sub eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
and eax, 1
jne 0x1028de2d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
and edx, 1
je 0x1028de15
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
movzx edx, word [ecx + 4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
movzx eax, word [ecx + 6]
cmp edx, eax
jne 0x1028de2d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x3c]
movzx eax, word [edx + 4]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x3c]
movzx ecx, word [edx + 8]
cmp eax, ecx
jne 0x1028de2d
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x14], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
jmp 0x1028de46
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jge 0x1028debb
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
imul eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
lea edx, [edx + ecx - 1]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
jmp 0x1028de81
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 4]
jge 0x1028deb1
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
cmp ecx, 0xff
je 0x1028dea3
mov dword [ebp - 0x18], 3
jmp 0x1028deb1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
jmp 0x1028de78
cmp dword [ebp - 0x18], 0
je 0x1028deb9
jmp 0x1028debb
jmp 0x1028de3d
cmp dword [ebp - 0x18], 0
jne 0x1028defb
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
sub edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x18]
sub eax, dword [edx + 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x1c]
sub eax, dword [edx + 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
and edx, 1
je 0x1028df29
cmp dword [ebp - 0x18], 0
jne 0x1028df47
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
and ecx, 0x10
je 0x1028e4b6
cmp dword [ebp - 0x10], 0
jne 0x1028df47
cmp dword [ebp - 0x14], 0
je 0x1028e4b6
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
and eax, 1
jne 0x1028df60
cmp dword [ebp - 0x18], 0
je 0x1028df60
mov dword [ebp - 0x44], 2
jmp 0x1028df67
mov dword [ebp - 0x44], 1
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x10], 0
jne 0x1028df79
cmp dword [ebp - 0x14], 0
je 0x1028df8c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
and eax, 0x10
jne 0x1028df8c
mov ecx, dword [ebp - 0x28]
add ecx, 2
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
imul eax, dword [edx + 4]
mov ecx, dword [ebp + 0xc]
imul eax, dword [ecx + 8]
push eax
mov edx, dword [0x10351288]
mov eax, dword [edx + 0x14]
call eax
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
add edx, dword [eax + 0x14]
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], 0
jne 0x1028e046
cmp dword [ebp - 0x14], 0
jne 0x1028e046
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
jmp 0x1028dfe3
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jle 0x1028e041
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
jmp 0x1028dffd
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jle 0x1028e024
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
jmp 0x1028dff4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 4]
imul ecx, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
sub eax, ecx
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
jmp 0x1028dfda
jmp 0x1028e179
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
and edx, 0x10
je 0x1028e0ef
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
jmp 0x1028e068
mov edx, dword [ebp - 0x20]
sub edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jle 0x1028e0ea
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
jmp 0x1028e082
mov edx, dword [ebp - 0x24]
sub edx, 1
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jle 0x1028e0ca
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax]
imul ecx, ecx, 0xb
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 1]
shl eax, 4
add ecx, eax
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 2]
imul eax, eax, 5
lea ecx, [ecx + eax + 0x10]
sar ecx, 5
mov edx, dword [ebp - 0x1c]
mov byte [edx], cl
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
jmp 0x1028e079
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 4]
imul edx, dword [ecx + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
sub ecx, edx
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x30], ecx
jmp 0x1028e05f
jmp 0x1028e179
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
jmp 0x1028e103
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jle 0x1028e179
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
jmp 0x1028e11d
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jle 0x1028e15c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 1]
mov byte [edx + 1], cl
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 2]
mov byte [edx + 2], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
jmp 0x1028e114
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 4]
imul ecx, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
sub eax, ecx
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
jmp 0x1028e0fa
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 0
jne 0x1028e195
jmp 0x1028e456
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
and edx, 1
je 0x1028e3d7
cmp dword [ebp - 0x28], 2
jle 0x1028e2f7
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
movzx edx, word [ecx + 4]
sar edx, 8
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
movzx edx, word [ecx + 6]
sar edx, 8
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
movzx edx, word [ecx + 8]
sar edx, 8
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
jmp 0x1028e1f1
mov edx, dword [ebp - 0x20]
sub edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jle 0x1028e2f2
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
jmp 0x1028e20f
mov edx, dword [ebp - 0x24]
sub edx, 1
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jle 0x1028e2d2
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax]
mov eax, 0xff
sub eax, ecx
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edx]
mov edx, dword [ebp - 0x34]
sub edx, ecx
imul eax, edx
cdq
mov ecx, 0xff
idiv ecx
movzx edx, al
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax]
add ecx, edx
mov edx, dword [ebp - 0x1c]
mov byte [edx], cl
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax]
mov eax, 0xff
sub eax, ecx
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edx + 1]
mov edx, dword [ebp - 0x3c]
sub edx, ecx
imul eax, edx
cdq
mov ecx, 0xff
idiv ecx
movzx edx, al
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + 1]
add ecx, edx
mov edx, dword [ebp - 0x1c]
mov byte [edx + 1], cl
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax]
mov eax, 0xff
sub eax, ecx
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edx + 2]
mov edx, dword [ebp - 0x38]
sub edx, ecx
imul eax, edx
cdq
mov ecx, 0xff
idiv ecx
movzx edx, al
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + 2]
add ecx, edx
mov edx, dword [ebp - 0x1c]
mov byte [edx + 2], cl
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
jmp 0x1028e206
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 4]
imul edx, dword [ecx + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
sub ecx, edx
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x30], ecx
jmp 0x1028e1e8
jmp 0x1028e3d5
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x3c]
movzx ecx, word [eax + 4]
sar ecx, 8
imul ecx, ecx, 0xb
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x3c]
movzx edx, word [eax + 6]
sar edx, 8
shl edx, 4
add ecx, edx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x3c]
movzx eax, word [edx + 8]
sar eax, 8
imul eax, eax, 5
lea ecx, [ecx + eax + 0x10]
sar ecx, 5
movzx edx, cl
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
jmp 0x1028e34a
mov edx, dword [ebp - 0x20]
sub edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jle 0x1028e3d5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
jmp 0x1028e368
mov edx, dword [ebp - 0x24]
sub edx, 1
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jle 0x1028e3b5
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax]
mov eax, 0xff
sub eax, ecx
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edx]
mov edx, dword [ebp - 0x40]
sub edx, ecx
imul eax, edx
cdq
mov ecx, 0xff
idiv ecx
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edx]
add ecx, eax
mov edx, dword [ebp - 0x1c]
mov byte [edx], cl
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
jmp 0x1028e35f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 4]
imul edx, dword [ecx + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
sub ecx, edx
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x30], ecx
jmp 0x1028e341
jmp 0x1028e456
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx - 1]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
jmp 0x1028e3f8
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jle 0x1028e456
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
jmp 0x1028e412
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jle 0x1028e439
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
jmp 0x1028e409
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 4]
imul ecx, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
sub eax, ecx
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
jmp 0x1028e3ef
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
imul eax, dword [edx + 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x14], 0
cmp dword [ebp - 0x28], 2
jle 0x1028e49d
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x1c], 2
jmp 0x1028e4b1
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 0x2c]
jmp 0x1028e4b8
xor eax, eax
mov esp, ebp
pop ebp
ret