Function at 0x5b8120
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xb0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc0]
push edi
mov edi, ecx
mov al, byte [esi + 0x10]
mov edx, dword [esi + 0x2c]
and al, 1
mov dword [esp + 0x28], edx
mov byte [esp + 0x11], al
mov eax, dword [esi + 0x10]
mov ebx, eax
mov ecx, eax
shr eax, 8
and al, 1
add edx, 0xe
shr ecx, 7
mov byte [esp + 0x13], al
mov eax, dword [edi]
shr ebx, 6
and cl, 1
push eax
mov dword [esp + 0x38], edi
and bl, 1
mov byte [esp + 0x16], cl
mov dword [esp + 0x18], edx
call fcn.005b5090
lea ecx, [esp + 0x4c]
push 0x37
mov ebp, eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x90]
push 0x3c
push edx
push eax
push ecx
mov dword [esp + 0x4c], ebp
call fcn.005b0700
mov al, byte [esp + 0x2d]
add esp, 0x1c
test al, al
jne 0x5b824d
test bl, bl
je 0x5b81b9
mov al, byte [esp + 0x12]
test al, al
je 0x5b824d
lea eax, [esi + 0x1c]
push 1
push 6
mov edx, dword [eax]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, ebp
mov edx, dword [eax + 8]
and ecx, 0xffff
add ecx, 6
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
call fcn.005c09a0
add esp, 4
push eax
push 2
call fcn.005c09a0
add esp, 4
push eax
call fcn.005c3910
push eax
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.005b00f0
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + 0x24]
add esp, 0x18
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
push 4
push 6
call fcn.005c09a0
add esp, 4
push eax
push 2
call fcn.005c09a0
add esp, 4
push eax
call fcn.005c3910
mov ecx, dword [esi + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
jmp 0x5b829e
mov al, byte [esp + 0x54]
lea ebx, [esi + 0x1c]
test al, 3
push 2
je 0x5b827d
push 2
call fcn.005c09a0
add esp, 4
push eax
push 3
call fcn.005c09a0
add esp, 4
push eax
call fcn.005c3910
mov edx, dword [esi + 0x18]
push eax
push ebx
push edx
jmp 0x5b829e
push 6
call fcn.005c09a0
add esp, 4
push eax
push 0xa
call fcn.005c09a0
add esp, 4
push eax
call fcn.005c3910
push eax
mov eax, dword [esi + 0x18]
push ebx
push eax
call fcn.005b00f0
mov eax, dword [esp + 0x68]
add esp, 0x18
test ah, 8
je 0x5b8321
push 3
call fcn.005c09a0
mov ecx, dword [esi + 0x18]
add esp, 4
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.005b1590
mov edx, dword [esi + 0x20]
mov ebx, dword [esi + 0x28]
mov eax, dword [esi + 0x1c]
add edx, ebx
and ebp, 0xffff
push 0
sar edx, 1
push edx
mov edx, dword [esi + 0x18]
lea ecx, [eax + ebp + 0xe]
push ecx
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x18]
add eax, ecx
mov ecx, dword [esi + 0x24]
sar eax, 1
dec ecx
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_LineTo]
lea ecx, [esp + 0x38]
call fcn.005b15c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb0
ret 8
mov eax, dword [esp + 0x14]
cmp byte [eax], 0
je 0x5b8697
push eax
mov ecx, edi
call fcn.005b8820
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push 0
push eax
push 0
push 0x100a
mov dword [esp + 0x3c], 1
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov al, byte [esp + 0x13]
test al, al
je 0x5b836d
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x5b836d
mov ebx, 0x100000
jmp 0x5b836f
xor ebx, ebx
mov al, byte [esp + 0x12]
test al, al
jne 0x5b8382
test byte [esp + 0x54], 3
jne 0x5b8382
push 5
jmp 0x5b8384
push 3
call fcn.005c09a0
mov ecx, dword [esi + 0x18]
add esp, 4
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esi + 0x18]
push 1
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [esi + 0x1c]
mov edi, ebp
and edi, 0xffff
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
lea eax, [edi + 0xe]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x24], edx
je 0x5b842a
mov edx, eax
mov eax, dword [esp + 0x28]
add eax, 0xe
or ebx, 0x24
sub edx, eax
lea ecx, [esp + 0x18]
push ebx
dec edx
push ecx
mov ecx, dword [esi + 0x18]
push edx
push eax
push ecx
call fcn.005b0090
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
push 0x24
mov eax, dword [edx + 6]
shr eax, 0x10
lea edx, [ecx + eax + 8]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x18]
push eax
push 0xffffffffffffffff
push ecx
push edx
call fcn.005b0090
add esp, 0x28
jmp 0x5b8449
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x18]
or ebx, 0x24
lea eax, [esp + 0x18]
push ebx
push eax
lea eax, [ecx + 0xe]
push 0xffffffffffffffff
push eax
push edx
call fcn.005b0090
add esp, 0x14
test byte [esi + 0x10], 8
je 0x5b8506
mov al, byte [esp + 0x12]
test al, al
jne 0x5b8466
test byte [esp + 0x54], 3
jne 0x5b8466
push 0xa
jmp 0x5b8468
push 3
call fcn.005c09a0
add esp, 4
mov ebp, eax
push 2
call fcn.005c09a0
mov ebx, eax
mov al, byte [esp + 0x15]
add esp, 4
test al, al
je 0x5b8497
push 1
push ebx
push ebp
call fcn.005c3910
mov dword [esp + 0x20], eax
push 2
jmp 0x5b84a6
push 2
push ebx
push ebp
call fcn.005c3910
mov dword [esp + 0x20], eax
push 3
push ebx
push ebp
call fcn.005c3910
mov ecx, dword [esi + 0x18]
add esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.005b1590
mov edx, dword [esi + 0x18]
push ebx
push edx
lea ecx, [esp + 0x7c]
call fcn.005b1500
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x1c]
dec ecx
push ecx
mov ecx, dword [esi + 0x20]
lea edx, [eax + edi + 4]
inc ecx
push edx
mov edx, dword [esi + 0x18]
inc eax
push ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_Rectangle]
lea ecx, [esp + 0x74]
call fcn.005b1560
lea ecx, [esp + 0x38]
call fcn.005b15c0
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x5b8596
mov ecx, dword [esp + 0x28]
test dword [ecx + 2], 0x20000
je 0x5b8596
push ebp
push ecx
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x5b8697
mov al, byte [esp + 0x11]
test al, al
je 0x5b8546
test byte [esi + 0x10], 8
mov ecx, 2
je 0x5b854b
mov ecx, 3
test al, al
je 0x5b855a
test byte [esi + 0x10], 8
mov eax, 2
je 0x5b855f
mov eax, 3
mov edx, dword [esp + 0x1c]
push 0
push edi
add ecx, edx
mov edx, dword [esi + 0x18]
push edi
push ecx
mov ecx, dword [esi + 0x1c]
add ecx, eax
push ecx
push ebx
push edx
call fcn.005b00b0
add esp, 0x1c
push ebx
call dword [sym.imp.USER32.dll_DestroyIcon]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb0
ret 8
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x34]
push eax
mov ecx, ebp
call fcn.005b7a10
test eax, eax
jl 0x5b8697
mov edx, dword [esp + 0x54]
mov cl, byte [esp + 0x11]
and edx, 3
jne 0x5b85c3
test cl, cl
je 0x5b85c3
mov bl, 1
jmp 0x5b85c5
xor bl, bl
test edx, edx
je 0x5b8651
mov ecx, dword [ebp]
push 0
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov ebp, eax
test ebp, ebp
je 0x5b8697
push 3
call fcn.005c09a0
mov edx, dword [esi + 0x18]
add esp, 4
lea ecx, [esp + 0x38]
push eax
push edx
call fcn.005b1500
mov ecx, dword [esp + 0x1c]
xor eax, eax
test bl, bl
setne al
add eax, 3
push 0x83
push edi
push edi
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x1c]
add ecx, eax
mov eax, dword [esi + 0x18]
push edx
mov edx, dword [esp + 0x54]
push ecx
push 0
push ebp
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_DrawStateA]
push ebp
call dword [sym.imp.USER32.dll_DestroyIcon]
lea ecx, [esp + 0x38]
call fcn.005b1560
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb0
ret 8
test cl, cl
je 0x5b8660
test byte [esi + 0x10], 8
mov edx, 2
je 0x5b8665
mov edx, 3
test cl, cl
je 0x5b8674
test byte [esi + 0x10], 8
mov ecx, 2
je 0x5b8679
mov ecx, 3
mov edi, dword [esp + 0x1c]
push 1
add edx, edi
push edx
mov edx, dword [esi + 0x1c]
add edx, ecx
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [ebp]
push ecx
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb0
ret 8