Function at 0x40f7d0
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410400
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov dword [ebp - 0x1c], ecx
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], esi
cmp dword [ebp + 8], esi
mov dword [ebp - 0x14], esi
jne 0x40f8d1
mov dword [ebp - 0x170], 0x433828
mov dword [ebp - 0x158], 0x433820
mov dword [ebp - 0x154], 0x433818
push 1
mov eax, dword [0x4597cc]
mov dword [ebp - 0x150], 0x433808
push esi
lea ecx, [ebp - 0x16c]
push 0xffffffffffffffff
push esi
push esi
push eax
push 0x4597d8
call fcn.0040b5c0
push esi
lea ecx, [ebp - 0x158]
or dword [ebp - 0x14], 0x200000
mov dword [ebp - 4], esi
call fcn.0040dfb0
push esi
lea ecx, [ebp - 0x154]
or dword [ebp - 0x14], 0x400000
mov dword [ebp - 4], 1
call fcn.00402440
push esi
lea ecx, [ebp - 0x150]
or dword [ebp - 0x14], 0x800000
mov dword [ebp - 4], 2
call fcn.00402510
or dword [ebp - 0x14], 0x1000000
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x170]
push 0x438c10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x170]
push eax
mov dword [ebp + ecx - method.Err_Bmp_FileOpen.virtual_0], vtable.Err_Bmp_FileOpen.0
call fcn.00428590
push 0
mov edx, 0x80000000
push 0x10000000
mov ecx, dword [ebp + 8]
push 3
push 0
push 1
call fcn.00426d00
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x40f9ca
mov dword [ebp - 0x14c], 0x433828
mov dword [ebp - 0x134], 0x433820
mov dword [ebp - 0x130], 0x433818
push 1
mov eax, dword [0x4597cc]
mov dword [ebp - 0x12c], 0x433808
push 0
lea ecx, [ebp - 0x148]
push 0xffffffffffffffff
push 0
push 0
push eax
push 0x4597d8
call fcn.0040b5c0
push 0
lea ecx, [ebp - 0x134]
or dword [ebp - 0x14], 0x2000000
mov dword [ebp - 4], 4
call fcn.0040dfb0
push 0
lea ecx, [ebp - 0x130]
or dword [ebp - 0x14], 0x4000000
mov dword [ebp - 4], 5
call fcn.00402440
push 0
lea ecx, [ebp - 0x12c]
or dword [ebp - 0x14], 0x8000000
mov dword [ebp - 4], 6
call fcn.00402510
or dword [ebp - 0x14], 0x10000000
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x14c]
push 0x438c10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp + ecx - method.Err_Bmp_FileOpen.virtual_0], vtable.Err_Bmp_FileOpen.0
call fcn.00428590
push 0
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x50]
push 0xe
mov ecx, dword [ebp - 0x18]
call fcn.00427260
test eax, eax
jne 0x40fabd
mov ecx, dword [ebp - 0x18]
call fcn.00427db0
mov dword [ebp - 0x128], 0x4337e8
mov dword [ebp - 0x110], 0x4337e0
mov dword [ebp - 0x10c], 0x4337d8
push 1
mov eax, dword [0x4597b0]
mov dword [ebp - 0x108], 0x4337c8
push 0
lea ecx, [ebp - 0x124]
push 0xffffffffffffffff
push 0
push 0
push eax
push 0x4597d8
call fcn.0040b5c0
push 0
lea ecx, [ebp - 0x110]
or dword [ebp - 0x14], 0x20000000
mov dword [ebp - 4], 8
call fcn.0040dfb0
push 0
lea ecx, [ebp - 0x10c]
or dword [ebp - 0x14], 0x40000000
mov dword [ebp - 4], 9
call fcn.00402440
push 0
lea ecx, [ebp - 0x108]
or dword [ebp - 0x14], 0x80000000
mov dword [ebp - 4], 0xa
call fcn.00410420
or dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x128]
push 0x438bc8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x128]
push eax
mov dword [ebp + ecx - method.Err_Bmp_FileRead.virtual_0], vtable.Err_Bmp_FileRead.0
call fcn.00428590
cmp word [ebp - 0x50], 0x4d42
je 0x40fb5b
mov ecx, dword [ebp - 0x18]
call fcn.00427db0
mov dword [ebp - 0xa4], 0x4337b0
push 1
mov eax, dword [0x4463e8]
mov dword [ebp - 0x8c], 0x4337a8
push 0
lea ecx, [ebp - 0xa0]
push 0xffffffffffffffff
push 0
push 0
push eax
push 0x4597d8
call fcn.0040b5c0
or dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xc
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x8c]
push 0x438b80
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax + 4]
or dword [ebp - 0x14], 2
mov dword [ebp + ecx - 0x8c], vtable.Err_Bmp.0
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 4]
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp + ecx - 0xa4], vtable.Err_BmpBadFormat.0
call fcn.00428590
push 0
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x228]
push 0x28
mov ecx, dword [ebp - 0x18]
call fcn.00427260
test eax, eax
jne 0x40fbaa
mov ecx, dword [ebp - 0x18]
call fcn.00427db0
push 1
push 1
push 0
lea ecx, [ebp - 0x200]
push 0xffffffffffffffff
push 0
push 0
push 0x4597d8
call fcn.00410530
push 0x438bc8
lea eax, [ebp - 0x200]
push eax
call fcn.00428590
cmp dword [ebp - 0x228], 0x28
jne 0x40fbbc
cmp dword [ebp - 0x218], 0
je 0x40fc36
mov ecx, dword [ebp - 0x18]
call fcn.00427db0
mov dword [ebp - 0x6c], 0x4337b0
push 1
mov eax, dword [0x4463e8]
mov dword [ebp - 0x54], 0x4337a8
push 0
lea ecx, [ebp - 0x68]
push 0xffffffffffffffff
push 0
push 0
push eax
push 0x4597d8
call fcn.0040b5c0
or dword [ebp - 0x14], 8
mov dword [ebp - 4], 0xe
mov dword [ebp - 4], 0xf
mov eax, dword [ebp - 0x54]
push 0x438b80
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax + 4]
or dword [ebp - 0x14], 0x10
mov dword [ebp + ecx - 0x54], vtable.Err_Bmp.0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp + ecx - 0x6c], vtable.Err_BmpBadFormat.0
call fcn.00428590
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x40fc5d
cmp word [ebp - 0x21a], 0x18
je 0x40fc5d
mov eax, 1
mov cl, byte [ebp - 0x21a]
shl eax, cl
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x100
je 0x40fcf6
mov ecx, dword [ebp - 0x18]
call fcn.00427db0
mov dword [ebp - 0x88], 0x4337b0
push 1
mov eax, dword [0x4463e8]
mov dword [ebp - 0x70], 0x4337a8
push 0
lea ecx, [ebp - 0x84]
push 0xffffffffffffffff
push 0
push 0
push eax
push 0x4597d8
call fcn.0040b5c0
or dword [ebp - 0x14], 0x40
mov dword [ebp - 4], 0x10
mov dword [ebp - 4], 0x11
mov eax, dword [ebp - 0x70]
push 0x438b80
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax + 4]
or dword [ebp - 0x14], 0x80
mov dword [ebp + ecx - 0x70], vtable.Err_Bmp.0
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp + ecx - 0x88], vtable.Err_BmpBadFormat.0
call fcn.00428590
cmp dword [ebp - 0x208], 0
jne 0x40fd08
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x208], eax
xor eax, eax
mov ax, word [ebp - 0x21a]
mov ecx, dword [ebp - 0x224]
imul eax, dword [ebp - 0x224]
add eax, 0x1f
mov edx, dword [ebp - 0x220]
and eax, 0xffffffe7
mov dword [ebp - 0x40], ecx
shr eax, 3
mov dword [ebp - 0x3c], edx
imul eax, dword [ebp - 0x220]
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], 0x12
mov ecx, dword [ebp - 0x20]
shl ecx, 2
mov edx, 1
call fcn.0040b630
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
shl eax, 2
push eax
call fcn.00427260
test eax, eax
jne 0x40fdba
mov ecx, dword [ebp - 0x18]
call fcn.00427db0
mov ecx, dword [ebp - 0x28]
call fcn.0040b710
push 1
push 1
push 0
lea ecx, [ebp - 0x1dc]
push 0xffffffffffffffff
push 0
push 0
push 0x4597d8
call fcn.00410530
push 0x438bc8
lea eax, [ebp - 0x1dc]
push eax
call fcn.00428590
mov dword [ebp - 4], 0x17
mov ecx, dword [ebp - 0x28]
call fcn.00414050
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
call fcn.0040b710
mov dword [ebp - 4], 0x1c
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
push 8
mov ecx, dword [ebp - 0x1c]
call fcn.0040f250
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x24]
lea ecx, [ecx + eax + 4]
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x46], 0
je 0x40fe63
push 0
mov edx, dword [ebp - 0x46]
push 0
mov ecx, dword [ebp - 0x18]
call fcn.00427c90
cmp eax, 0xffffffff
jne 0x40fe63
mov ecx, dword [ebp - 0x18]
call fcn.00427db0
push 1
push 1
push 0
lea ecx, [ebp - 0x1b8]
push 0xffffffffffffffff
push 0
push 0
push 0x4597d8
call fcn.00410530
push 0x438bc8
lea eax, [ebp - 0x1b8]
push eax
call fcn.00428590
mov esi, dword [ebp - 0x1c]
push 0
add esi, 0x40
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [esi]
mov ecx, dword [ebp - 0x18]
call fcn.00427260
test eax, eax
jne 0x40feb9
mov ecx, dword [ebp - 0x18]
call fcn.00427db0
push 1
push 1
push 0
lea ecx, [ebp - 0x194]
push 0xffffffffffffffff
push 0
push 0
push 0x4597d8
call fcn.00410530
push 0x438bc8
lea eax, [ebp - 0x194]
push eax
call fcn.00428590
mov ecx, dword [ebp - 0x18]
call fcn.00427db0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x3c]
push ecx
mov ecx, dword [esi]
call fcn.00410740
mov dword [ebp - 4], 0x1e
mov ebx, dword [ebp - 0x1c]
add ebx, 0x10
mov edi, dword [ebp + 8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edx, 1
call fcn.0040b630
mov dword [ebx], eax
mov edi, dword [ebp + 8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
call fcn.0040d700
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, edx
mov edx, dword [ebp - 0x1c]
add edx, 8
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4