Function at 0x5b6b70
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp]
mov ebx, dword [eax + 0x58]
mov edx, dword [eax + 0xc]
push esi
push edi
mov edi, dword [eax + 0x10]
mov ax, word [ecx]
and eax, 0x7fff
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
lea esi, [ecx + 0xa]
movsx eax, word [ecx + 4]
cdq
sub eax, edx
mov edx, dword [esp + 0x48]
sar eax, 1
neg eax
add edx, eax
mov dword [esp + 0x2c], edi
movsx eax, word [ecx + 6]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x44]
sar eax, 1
sub edx, eax
mov al, byte [ecx + 6]
not al
and al, 1
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x40], al
mov eax, dword [esp + 0x48]
shr ebx, 3
cmp eax, edx
mov dword [esp + 0x20], ebx
jge 0x5b6f34
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [esp + 0x48]
sar eax, 1
add eax, edx
js 0x5b6f34
mov eax, dword [esp + 0x44]
cmp eax, edi
jge 0x5b6f34
xor edi, edi
mov di, word [ecx + 2]
shr edi, 1
add edi, eax
js 0x5b6f34
mov edi, dword [esp + 0x3c]
mov eax, dword [edi]
cmp eax, 2
sete cl
test cl, cl
mov byte [esp + 0x13], cl
jne 0x5b6ceb
mov ecx, dword [edi + 0x80]
test ecx, ecx
je 0x5b6cb4
test eax, eax
jne 0x5b6cb4
mov eax, dword [ecx]
push 0
lea edx, [edi + 4]
push 0x821
push edx
push 0
push ecx
call dword [eax + 0x64]
test eax, eax
jge 0x5b6c7e
push str.GXCanvas::lockWrite___Lock.
push eax
push 3
push 0xc
push 0x8b
push str...incgxcanvas.h
call fcn.004565c0
add esp, 0x18
jmp 0x5b6c84
mov dword [edi], 2
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x5b6cb0
mov eax, dword [0x624270]
push str.mDesc.lpSurface__0
push 0
push 0
push eax
push 0xc
push 0xc
push 0x90
push str...incgxcanvas.h
call fcn.00456580
add esp, 0x20
mov edx, dword [esp + 0x48]
cmp dword [edi], 2
je 0x5b6ceb
mov ecx, dword [0x624270]
push str.GXLLE::draw___Lock.
push 0
push 0
push ecx
push 0xc
push 0xc
push 0x473
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 [ebp]
movsx ecx, word [eax + 4]
and ecx, 0x80000001
jns 0x5b6cff
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x5b6d1a
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
je 0x5b6d16
inc esi
xor ecx, ecx
dec eax
mov cl, byte [esi]
lea esi, [esi + ecx + 1]
jne 0x5b6d0a
dec dword [esp + 0x14]
lea eax, [edx + 1]
test eax, eax
jg 0x5b6d54
mov eax, dword [esp + 0x14]
mov ebp, 2
sub eax, ebp
mov dword [esp + 0x14], eax
js 0x5b6d50
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
je 0x5b6d47
inc esi
xor ecx, ecx
dec eax
mov cl, byte [esi]
lea esi, [esi + ecx + 1]
jne 0x5b6d3b
dec ebp
jne 0x5b6d32
inc edx
cmp edx, 0xffffffff
jle 0x5b6d21
mov dword [esp + 0x48], edx
mov edi, dword [edi + 0x14]
imul ebx, dword [esp + 0x44]
mov ebp, edi
imul ebp, edx
add ebp, ebx
mov ebx, dword [esp + 0x3c]
mov ecx, dword [ebx + 0x28]
add ebp, ecx
mov ecx, dword [esp + 0x1c]
cmp edx, ecx
mov dword [esp + 0x18], ebp
jge 0x5b6ee0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
sub eax, 2
mov dword [esp + 0x14], eax
js 0x5b6edc
mov eax, dword [esp + 0x48]
test eax, eax
jl 0x5b6ea4
cmp eax, ecx
jge 0x5b6ea4
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 0x5b6e73
mov dword [esp + 0x28], edi
xor ebx, ebx
mov bl, byte [esi]
inc esi
mov edi, ebx
test edi, edi
je 0x5b6ddf
mov ebx, dword [esp + 0x20]
test al, al
je 0x5b6dda
add ebp, ebx
inc ecx
xor al, al
jmp 0x5b6ddc
mov al, 1
dec edi
jne 0x5b6dcf
xor ebx, ebx
mov bl, byte [esi]
inc esi
test ebx, ebx
je 0x5b6e64
lea edi, [ebp + 2]
mov dword [esp + 0x24], ebx
mov bl, byte [esi]
inc esi
test al, al
mov byte [esp + 0x30], bl
je 0x5b6e57
test ecx, ecx
jl 0x5b6e4a
cmp ecx, dword [esp + 0x2c]
jge 0x5b6e4a
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
inc ecx
xor al, al
jmp 0x5b6e59
mov al, 1
mov ebx, dword [esp + 0x24]
dec ebx
mov dword [esp + 0x24], ebx
jne 0x5b6def
mov edi, dword [esp + 0x28]
dec edi
mov dword [esp + 0x28], edi
jne 0x5b6dc0
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
mov edi, dword [ecx + 0x14]
add ebp, edi
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 0x5b6ecc
inc esi
xor ecx, ecx
dec eax
mov cl, byte [esi]
lea esi, [esi + ecx + 1]
jne 0x5b6e96
jmp 0x5b6ecc
add ebp, edi
inc eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x48], eax
mov ecx, 2
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
je 0x5b6ec9
inc esi
xor ebx, ebx
dec eax
mov bl, byte [esi]
lea esi, [esi + ebx + 1]
jne 0x5b6ebd
dec ecx
jne 0x5b6eb4
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
cmp eax, ecx
jl 0x5b6d80
mov ebx, dword [esp + 0x3c]
mov al, byte [esp + 0x13]
test al, al
jne 0x5b6f34
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x5b6f34
cmp dword [ebx], 0
je 0x5b6f34
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x80]
test eax, eax
jge 0x5b6f2e
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