Function at 0x5b7760
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
push edi
mov edi, dword [edx + 0x58]
mov ebx, ecx
mov ecx, dword [eax + 0x28]
mov ebp, dword [edx + 0x10]
shr edi, 3
mov eax, edi
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx]
mov dword [esp + 0x2c], ebp
neg eax
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x1c], eax
mov ax, word [ecx]
and eax, 0x7fff
lea esi, [ecx + 0xa]
mov dword [esp + 0x14], eax
movsx eax, word [ecx + 4]
cdq
sub eax, edx
mov edx, dword [esp + 0x48]
sar eax, 1
neg eax
add edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x48], edx
movsx edx, word [ecx + 6]
neg edx
sar edx, 1
sub eax, edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov al, byte [ecx + 6]
not al
and al, 1
mov byte [esp + 0x40], al
mov eax, dword [esp + 0x1c]
cmp edx, eax
jge 0x5b7b33
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [esp + 0x48]
sar eax, 1
add eax, edx
js 0x5b7b33
mov eax, dword [esp + 0x44]
test eax, eax
jl 0x5b7b33
xor eax, eax
mov ax, word [ecx + 2]
mov ecx, dword [esp + 0x44]
shr eax, 1
sub ecx, eax
cmp ecx, ebp
jge 0x5b7b33
mov ebp, dword [esp + 0x3c]
mov eax, dword [ebp]
cmp eax, 2
sete cl
test cl, cl
mov byte [esp + 0x13], cl
jne 0x5b78e9
mov ecx, dword [ebp + 0x80]
test ecx, ecx
je 0x5b78b1
test eax, eax
jne 0x5b78b1
mov edx, dword [ecx]
push eax
lea eax, [ebp + 4]
push 0x821
push eax
push 0
push ecx
call dword [edx + 0x64]
test eax, eax
jge 0x5b7879
push str.GXCanvas::lockWrite___Lock.
push eax
push 3
push 0xc
push 0x8b
push str...incgxcanvas.h
call fcn.004565c0
add esp, 0x18
jmp 0x5b7880
mov dword [ebp], 2
mov eax, dword [ebp + 0x28]
test eax, eax
jne 0x5b78ad
mov ecx, dword [0x624270]
push str.mDesc.lpSurface__0
push 0
push 0
push ecx
push 0xc
push 0xc
push 0x90
push str...incgxcanvas.h
call fcn.00456580
add esp, 0x20
mov edx, dword [esp + 0x48]
cmp dword [ebp], 2
je 0x5b78e9
mov edx, dword [0x624270]
push str.GXLLE::draw___Lock.
push 0
push 0
push edx
push 0xc
push 0xc
push 0x5fa
push str.C:_aqua_srcgxgxlledither.cpp
call fcn.00456580
add esp, 0x20
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x14
mov eax, dword [ebx]
movsx ecx, word [eax + 4]
and ecx, 0x80000001
jns 0x5b78fc
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x5b7917
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
je 0x5b7913
inc esi
xor ecx, ecx
dec eax
mov cl, byte [esi]
lea esi, [esi + ecx + 1]
jne 0x5b7907
dec dword [esp + 0x14]
lea eax, [edx + 1]
test eax, eax
jg 0x5b7951
mov eax, dword [esp + 0x14]
mov ecx, 2
sub eax, ecx
mov dword [esp + 0x14], eax
js 0x5b794d
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
je 0x5b7944
inc esi
xor ebx, ebx
dec eax
mov bl, byte [esi]
lea esi, [esi + ebx + 1]
jne 0x5b7938
dec ecx
jne 0x5b792f
inc edx
cmp edx, 0xffffffff
jle 0x5b791e
mov dword [esp + 0x48], edx
mov ecx, dword [ebp + 0x14]
imul edi, dword [esp + 0x44]
mov ebp, ecx
mov ebx, dword [esp + 0x3c]
imul ebp, edx
add ebp, edi
mov edi, dword [ebx + 0x28]
add ebp, edi
mov edi, dword [esp + 0x1c]
cmp edx, edi
mov dword [esp + 0x18], ebp
jge 0x5b7adf
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
sub eax, 2
mov dword [esp + 0x14], eax
js 0x5b7adb
mov eax, dword [esp + 0x48]
test eax, eax
jl 0x5b7aa3
cmp eax, edi
jge 0x5b7aa3
mov ecx, dword [esp + 0x44]
mov al, byte [esp + 0x40]
xor ebx, ebx
mov bl, byte [esi]
inc esi
mov edi, ebx
test edi, edi
je 0x5b7a70
mov dword [esp + 0x28], edi
xor ebx, ebx
mov bl, byte [esi]
inc esi
mov edi, ebx
test edi, edi
je 0x5b79dc
mov ebx, dword [esp + 0x20]
test al, al
je 0x5b79d7
add ebp, ebx
dec ecx
xor al, al
jmp 0x5b79d9
mov al, 1
dec edi
jne 0x5b79cc
xor ebx, ebx
mov bl, byte [esi]
inc esi
test ebx, ebx
je 0x5b7a61
lea edi, [ebp + 2]
mov dword [esp + 0x24], ebx
mov bl, byte [esi]
inc esi
test al, al
mov byte [esp + 0x30], bl
je 0x5b7a54
test ecx, ecx
jl 0x5b7a47
cmp ecx, dword [esp + 0x2c]
jge 0x5b7a47
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dl, byte [edx + 2]
and eax, 0xff
shr dl, 1
lea eax, [ebx + eax*4]
mov bl, byte [eax]
shr bl, 1
add dl, bl
inc eax
mov byte [ebp], dl
mov edx, dword [esp + 0x4c]
mov bl, byte [eax]
mov dl, byte [edx + 1]
shr dl, 1
shr bl, 1
add dl, bl
mov byte [edi - 1], dl
mov edx, dword [esp + 0x4c]
mov al, byte [eax + 1]
mov bl, byte [edx]
shr al, 1
shr bl, 1
add al, bl
mov byte [edi], al
mov byte [edi + 1], 0xff
mov eax, dword [esp + 0x20]
add ebp, eax
add edi, eax
dec ecx
xor al, al
jmp 0x5b7a56
mov al, 1
mov ebx, dword [esp + 0x24]
dec ebx
mov dword [esp + 0x24], ebx
jne 0x5b79ec
mov edi, dword [esp + 0x28]
dec edi
mov dword [esp + 0x28], edi
jne 0x5b79bd
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
mov ecx, dword [ecx + 0x14]
add ebp, ecx
inc eax
mov dword [esp + 0x48], eax
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
mov dword [esp + 0x18], ebp
je 0x5b7acb
mov edi, eax
inc esi
xor eax, eax
dec edi
mov al, byte [esi]
lea esi, [esi + eax + 1]
jne 0x5b7a95
jmp 0x5b7acb
add ebp, ecx
inc eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x48], eax
mov edi, 2
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
je 0x5b7ac8
inc esi
xor ebx, ebx
dec eax
mov bl, byte [esi]
lea esi, [esi + ebx + 1]
jne 0x5b7abc
dec edi
jne 0x5b7ab3
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
cmp eax, edi
jl 0x5b797d
mov ebx, dword [esp + 0x3c]
mov al, byte [esp + 0x13]
test al, al
jne 0x5b7b33
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x5b7b33
cmp dword [ebx], 0
je 0x5b7b33
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x80]
test eax, eax
jge 0x5b7b2d
push str.GXCanvas::unlockSurface___Unlock.
push eax
push 3
push 0xc
push 0x9d
push str...incgxcanvas.h
call fcn.004565c0
add esp, 0x18
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x14
mov dword [ebx], 0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x28
ret 0x14