Function at 0x5b7380
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
mov edi, dword [ebx + 0x58]
mov ebp, ecx
mov ecx, dword [eax + 0x28]
mov edx, dword [ebx + 0xc]
shr edi, 3
mov eax, edi
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp]
mov dword [esp + 0x1c], edx
neg eax
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x20], 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 + 0x44]
sar eax, 1
neg eax
add edx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], edx
movsx edx, word [ecx + 6]
neg edx
sar edx, 1
sub eax, edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov al, byte [ecx + 6]
not al
and al, 1
mov byte [esp + 0x3c], al
mov eax, dword [esp + 0x1c]
cmp edx, eax
jge 0x5b7745
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [esp + 0x44]
sar eax, 1
add eax, edx
js 0x5b7745
mov eax, dword [esp + 0x40]
test eax, eax
jl 0x5b7745
xor eax, eax
mov ax, word [ecx + 2]
mov ecx, dword [esp + 0x40]
shr eax, 1
sub ecx, eax
mov eax, dword [esp + 0x20]
cmp ecx, eax
jge 0x5b7745
mov eax, dword [ebx]
cmp eax, 2
sete cl
test cl, cl
mov byte [esp + 0x13], cl
jne 0x5b7507
mov ecx, dword [ebx + 0x80]
test ecx, ecx
je 0x5b74cc
test eax, eax
jne 0x5b74cc
mov edx, dword [ecx]
push eax
lea eax, [ebx + 4]
push 0x821
push eax
push 0
push ecx
call dword [edx + 0x64]
test eax, eax
jge 0x5b7499
push str.GXCanvas::lockWrite___Lock.
push eax
push 3
push 0xc
push 0x8b
push str...incgxcanvas.h
call fcn.004565c0
add esp, 0x18
jmp 0x5b749f
mov dword [ebx], 2
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x5b74cc
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
cmp dword [ebx], 2
je 0x5b7503
mov edx, dword [0x624270]
push str.GXLLE::draw___Lock.
push 0
push 0
push edx
push 0xc
push 0xc
push 0x579
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, 0x24
ret 0x14
mov edx, dword [esp + 0x44]
mov eax, dword [ebp]
movsx ecx, word [eax + 4]
and ecx, 0x80000001
jns 0x5b751b
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x5b7536
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
je 0x5b7532
inc esi
xor ecx, ecx
dec eax
mov cl, byte [esi]
lea esi, [esi + ecx + 1]
jne 0x5b7526
dec dword [esp + 0x14]
lea eax, [edx + 1]
test eax, eax
jg 0x5b7574
mov eax, dword [esp + 0x14]
mov ecx, 2
sub eax, ecx
mov dword [esp + 0x14], eax
js 0x5b7574
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
je 0x5b7563
inc esi
xor edx, edx
dec eax
mov dl, byte [esi]
lea esi, [esi + edx + 1]
jne 0x5b7557
dec ecx
jne 0x5b754e
mov edx, dword [esp + 0x44]
inc edx
cmp edx, 0xffffffff
mov dword [esp + 0x44], edx
jle 0x5b753d
mov ecx, dword [ebx + 0x14]
imul edi, dword [esp + 0x40]
mov eax, ecx
mov ebp, dword [ebx + 0x28]
imul eax, edx
add eax, edi
mov edi, dword [esp + 0x1c]
add eax, ebp
cmp edx, edi
mov dword [esp + 0x18], eax
jge 0x5b76f1
mov ebx, dword [esp + 0x48]
jmp 0x5b75a2
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov edi, 2
sub edx, edi
mov dword [esp + 0x14], edx
js 0x5b76ed
mov edx, dword [esp + 0x44]
test edx, edx
jl 0x5b76ba
cmp edx, dword [esp + 0x1c]
jge 0x5b76ba
mov ebp, dword [esp + 0x40]
xor ecx, ecx
mov cl, byte [esi]
inc esi
mov edi, eax
mov al, byte [esp + 0x3c]
test ecx, ecx
je 0x5b7689
mov dword [esp + 0x28], ecx
xor edx, edx
mov dl, byte [esi]
inc esi
test edx, edx
je 0x5b7605
test al, al
je 0x5b7600
mov ecx, dword [esp + 0x24]
add edi, ecx
dec ebp
xor al, al
jmp 0x5b7602
mov al, 1
dec edx
jne 0x5b75f1
xor edx, edx
mov dl, byte [esi]
inc esi
test edx, edx
je 0x5b767a
mov dword [esp + 0x48], edx
mov cl, byte [esi]
inc esi
test al, al
mov byte [esp + 0x2c], cl
je 0x5b766d
test ebp, ebp
jl 0x5b7662
cmp ebp, dword [esp + 0x20]
jge 0x5b7662
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov cl, byte [ebx + 2]
and edx, 0xff
shr cl, 1
lea eax, [eax + edx*4]
mov dl, byte [eax]
shr dl, 1
add cl, dl
inc eax
mov byte [edi], cl
mov cl, byte [ebx + 1]
mov dl, byte [eax]
shr cl, 1
shr dl, 1
add cl, dl
mov byte [edi + 1], cl
mov al, byte [eax + 1]
mov cl, byte [ebx]
shr al, 1
shr cl, 1
add al, cl
mov byte [edi + 2], al
mov ecx, dword [esp + 0x24]
add edi, ecx
dec ebp
xor al, al
jmp 0x5b766f
mov al, 1
mov ecx, dword [esp + 0x48]
dec ecx
mov dword [esp + 0x48], ecx
jne 0x5b7612
mov ecx, dword [esp + 0x28]
dec ecx
mov dword [esp + 0x28], ecx
jne 0x5b75e8
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x44]
mov ecx, dword [edx + 0x14]
add eax, ecx
inc ebp
mov dword [esp + 0x18], eax
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
mov dword [esp + 0x44], ebp
je 0x5b76dd
inc esi
xor edx, edx
dec eax
mov dl, byte [esi]
lea esi, [esi + edx + 1]
jne 0x5b76ac
jmp 0x5b76dd
add eax, ecx
inc edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], edx
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
je 0x5b76da
inc esi
xor edx, edx
dec eax
mov dl, byte [esi]
lea esi, [esi + edx + 1]
jne 0x5b76ce
dec edi
jne 0x5b76c5
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
cmp edx, eax
jl 0x5b759e
mov ebx, dword [esp + 0x38]
mov al, byte [esp + 0x13]
test al, al
jne 0x5b7745
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x5b7745
cmp dword [ebx], 0
je 0x5b7745
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x80]
test eax, eax
jge 0x5b773f
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, 0x24
ret 0x14
mov dword [ebx], 0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x24
ret 0x14