Function at 0x4293a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x520
mov eax, dword [0x4f1a20]
xor eax, esp
mov dword [esp + 0x51c], eax
push ebx
mov ebx, dword [esp + 0x528]
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push ebp
push esi
push edi
mov esi, ecx
mov ebp, dword [esi + 0x158]
push 1
push 6
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
mov dword [esp + 0x24], ebp
call edx
cmp word [esp + 0x1c], 0
jne 0x4296d7
cmp word [esp + 0x1e], 1
jne 0x4296d7
movzx eax, word [esp + 0x20]
mov dword [esi + 0x15c], eax
shl eax, 4
push eax
call fcn.00489ea8
mov cx, word [esp + 0x24]
xor edx, edx
add esp, 4
xor edi, edi
mov dword [esp + 0x24], eax
cmp dx, cx
jae 0x429446
mov ebp, eax
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push 1
push 0x10
push ebp
mov ecx, ebx
call edx
mov cx, word [esp + 0x20]
movzx eax, cx
inc edi
add ebp, 0x10
cmp edi, eax
jl 0x429420
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
mov edx, dword [esi + 0x158]
test edx, edx
jl 0x4296ce
movzx ecx, cx
cmp edx, ecx
jge 0x4296ce
shl ebp, 4
lea edi, [eax + ebp]
mov al, byte [edi + 2]
test al, al
jne 0x42948d
movzx ecx, word [edi + 6]
cmp cx, 8
jbe 0x42947f
movzx edx, cx
mov dword [esp + 0x14], edx
jmp 0x4294ab
test al, al
jne 0x42948d
mov dword [esp + 0x14], 8
jmp 0x4294ab
cmp al, 2
ja 0x42949b
mov dword [esp + 0x14], 1
jmp 0x4294ab
mov cl, 0x10
cmp cl, al
sbb eax, eax
and eax, 4
add eax, 4
mov dword [esp + 0x14], eax
movzx edx, byte [edi + 1]
mov ebp, dword [esp + 0x14]
movzx eax, byte [edi]
push 8
push ebp
push edx
push eax
mov ecx, esi
call sym.Player.exe_public:_void____thiscall_CxImage::Create_unsigned_long_int__unsigned_long_int__long_int__long_int_
mov eax, dword [edi + 0xc]
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
push 0
add eax, 0x28
push eax
mov ecx, ebx
call edx
mov ecx, dword [esi + 0x2c]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add ecx, ecx
push 1
add ecx, ecx
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, ebx
call eax
mov ecx, dword [esi + 0x2c]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call sym.Player.exe_public:_void___thiscall_CxImage::SetPalette_struct_tagRGBQUAD___unsigned_long_int_
cmp ebp, 0x18
jg 0x429516
mov ecx, dword [esi + 0x20]
mov eax, dword [ebx]
mov edx, dword [esi + 0x38]
mov eax, dword [eax + 8]
push 1
push ecx
push edx
mov ecx, ebx
call eax
jmp 0x429591
mov ecx, dword [esi + 0x14]
imul ecx, dword [esi + 0x10]
mov edi, dword [esi + 0x38]
add ecx, ecx
add ecx, ecx
push ecx
call fcn.00489ea8
mov ecx, dword [esi + 0x14]
imul ecx, dword [esi + 0x10]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
add esp, 4
add ecx, ecx
push 1
add ecx, ecx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x24], eax
mov ebp, eax
call edx
xor ecx, ecx
cmp dword [esi + 0x14], ecx
jle 0x429584
xor eax, eax
cmp dword [esi + 0x10], eax
jle 0x42957e
lea esp, [esp]
movzx edx, byte [ebp]
mov byte [edi], dl
movzx edx, byte [ebp + 1]
inc edi
mov byte [edi], dl
movzx edx, byte [ebp + 2]
inc edi
mov byte [edi], dl
inc eax
inc edi
add ebp, 4
cmp eax, dword [esi + 0x10]
jl 0x429560
inc ecx
cmp ecx, dword [esi + 0x14]
jl 0x429552
mov eax, dword [esp + 0x18]
push eax
call fcn.0048a1af
add esp, 4
cmp dword [esp + 0x14], 8
jg 0x4296bd
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, eax
add eax, eax
imul edi, eax
push edi
mov dword [esp + 0x2c], eax
call fcn.00489ea8
mov edx, dword [ebx]
add esp, 4
push 1
push edi
mov dword [esp + 0x20], eax
push eax
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
push 0x100
lea ecx, [esp + 0x430]
push 0
push ecx
call fcn.004899b0
xor ebx, ebx
add esp, 0xc
cmp dword [esi + 0x14], ebx
jle 0x429618
xor edi, edi
cmp dword [esi + 0x10], edi
jle 0x429612
push ebx
push edi
mov ecx, esi
call sym.Player.exe_public:_unsigned_char___thiscall_CxImage::GetPixelIndex_long_int__long_int_
movzx edx, al
inc edi
cmp edi, dword [esi + 0x10]
mov byte [esp + edx + 0x42c], 1
jl 0x4295f8
inc ebx
cmp ebx, dword [esi + 0x14]
jl 0x4295f1
xor ebx, ebx
xor ebp, ebp
cmp dword [esi + 0x2c], ebx
jle 0x4296b0
cmp byte [esp + ebp + 0x42c], 0
je 0x429637
inc ebp
cmp ebp, dword [esi + 0x2c]
jl 0x429625
jmp 0x4296b0
cmp ebp, ebx
jl 0x4296b0
cmp dword [esi + 0x14], ebx
mov byte [esp + 0x13], 0
jle 0x4296b0
mov dword [esp + 0x14], ebx
lea esp, [esp]
xor edi, edi
cmp dword [esi + 0x10], edi
jle 0x429695
mov eax, edi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x429665
dec eax
or eax, 0xfffffff8
inc eax
mov edx, edi
sar edx, 3
add edx, dword [esp + 0x14]
mov cl, 7
sub cl, al
mov eax, dword [esp + 0x18]
mov dl, byte [edx + eax]
shr dl, cl
test dl, 1
je 0x42968f
push ebp
push ebx
push edi
mov ecx, esi
call sym.Player.exe_public:_void___thiscall_CxImage::SetPixelIndex_long_int__long_int__unsigned_char_
mov byte [esp + 0x13], 1
inc edi
cmp edi, dword [esi + 0x10]
jl 0x429657
mov eax, dword [esp + 0x28]
add dword [esp + 0x14], eax
inc ebx
cmp ebx, dword [esi + 0x14]
jl 0x429650
cmp byte [esp + 0x13], 0
je 0x4296b0
mov dword [esi + 0x14c], ebp
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0048a1af
add esp, 4
mov edx, dword [esp + 0x24]
push edx
call fcn.0048a1af
add esp, 4
mov al, 1
jmp 0x4296d9
push eax
call fcn.0048a1af
add esp, 4
xor al, al
mov ecx, dword [esp + 0x52c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048893b
add esp, 0x520
ret 4