Function at 0x40aec0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
mov eax, dword [ebx + 8]
mov esi, ecx
test eax, eax
push edi
mov dword [esp + 0x10], esi
jne 0x40aee4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0x20
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [ebx + 0x10]
test eax, eax
mov dword [esi + 0x2c], ecx
jne 0x40af01
mov eax, dword [esi + 0x28]
xor edx, edx
xor edi, edi
jmp 0x40af0d
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x3c]
push ecx
push eax
push edx
push edi
mov edi, dword [esp + 0x50]
push edi
push ebp
mov ecx, esi
call fcn.0040ae30
test eax, eax
jne 0x40af2d
mov ecx, esi
call fcn.0040b1d0
mov ecx, dword [esp + 0x38]
push edi
push ebp
call sym.Player.exe_public:_long_int___thiscall_CTPImage::Create_unsigned_int__unsigned_int_
test eax, eax
je 0x40af48
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0x20
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + 0xc]
xor eax, eax
mov ecx, dword [ecx + 8]
cmp edx, eax
mov dword [esp + 0x50], ecx
jne 0x40b159
cmp edi, eax
jbe 0x40b1bc
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], edi
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x4c]
add eax, edx
mov edx, dword [ebx + 0xc]
xor ebp, ebp
mov edi, dword [ebx + 8]
mov bp, word [eax + 8]
xor ecx, ecx
mov cx, word [eax + 6]
imul ebp, edx
imul ecx, edx
lea edx, [edi + ebp*4]
mov dword [esp + 0x14], edx
lea ecx, [edi + ecx*4]
movsx edx, word [eax + 2]
movsx eax, word [eax + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], edx
jbe 0x40b130
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], eax
jmp 0x40afd1
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x38]
add edx, eax
xor eax, eax
xor esi, esi
xor ebx, ebx
mov ax, word [edx + 8]
mov si, word [edx + 6]
movsx edi, word [edx + 2]
movsx ebp, word [edx + 4]
shl eax, 2
shl esi, 2
mov bl, byte [eax + ecx + 2]
xor edx, edx
mov dl, byte [esi + ecx + 2]
imul ebx, ebp
imul edx, edi
add edx, ebx
xor ebx, ebx
mov bl, byte [eax + ecx + 1]
sar edx, 8
imul ebx, ebp
mov byte [esp + 0x2a], dl
xor edx, edx
mov dl, byte [esi + ecx + 1]
imul edx, edi
add edx, ebx
xor ebx, ebx
mov bl, byte [esi + ecx]
sar edx, 8
imul ebx, edi
mov byte [esp + 0x29], dl
xor edx, edx
mov dl, byte [eax + ecx]
mov ecx, dword [esp + 0x14]
imul edx, ebp
add edx, ebx
xor ebx, ebx
mov bl, byte [eax + ecx + 2]
sar edx, 8
imul ebx, ebp
mov byte [esp + 0x28], dl
xor edx, edx
mov dl, byte [esi + ecx + 2]
imul edx, edi
add edx, ebx
xor ebx, ebx
mov bl, byte [eax + ecx + 1]
sar edx, 8
imul ebx, ebp
mov byte [esp + 0x22], dl
xor edx, edx
mov dl, byte [esi + ecx + 1]
imul edx, edi
add edx, ebx
sar edx, 8
mov byte [esp + 0x21], dl
xor edx, edx
mov dl, byte [eax + ecx]
xor eax, eax
mov al, byte [esi + ecx]
imul edx, ebp
imul eax, edi
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add edx, eax
mov eax, dword [esp + 0x2a]
sar edx, 8
mov byte [esp + 0x20], dl
mov edx, dword [esp + 0x22]
and edx, 0xff
and eax, 0xff
imul edx, esi
imul eax, ecx
add edx, eax
mov eax, dword [esp + 0x50]
sar edx, 8
mov byte [eax + 2], dl
mov edx, dword [esp + 0x21]
and edx, 0xff
imul edx, esi
mov edi, dword [esp + 0x29]
add eax, 4
and edi, 0xff
mov dword [esp + 0x50], eax
imul edi, ecx
add edx, edi
sar edx, 8
mov byte [eax - 3], dl
mov edx, dword [esp + 0x20]
and edx, 0xff
imul edx, esi
mov esi, dword [esp + 0x28]
and esi, 0xff
imul esi, ecx
mov ecx, dword [esp + 0x38]
add edx, esi
sar edx, 8
mov byte [eax - 4], dl
mov eax, dword [esp + 0x48]
add ecx, 0xa
dec eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], eax
jne 0x40afc9
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
add ecx, 0xa
dec eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], eax
jne 0x40af70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 0x20
cmp edi, eax
jbe 0x40b1bc
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], edi
mov eax, dword [esi + 8]
mov edi, dword [esp + 0x38]
xor edx, edx
mov dx, word [eax + edi + 6]
mov eax, dword [ebx + 8]
imul edx, dword [ebx + 0xc]
test ebp, ebp
lea edi, [eax + edx*4]
jbe 0x40b1a6
xor eax, eax
mov edx, ebp
mov ebx, dword [esi + 4]
xor ebp, ebp
add ecx, 4
mov bp, word [eax + ebx + 6]
add eax, 0xa
dec edx
mov ebx, dword [edi + ebp*4]
mov dword [ecx - 4], ebx
jne 0x40b185
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
add edx, 0xa
dec eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], eax
jne 0x40b165
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 0x20