Function at 0x4096b0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5430
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x534090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x308], edx
mov eax, ecx
mov dword [ebp - 0x2f8], eax
xor ebx, ebx
mov dword [ebp - 0x300], eax
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push eax
mov dword [ebp - 0x2ec], ebx
call dword [0x504050]
mov esi, eax
cmp esi, 0xffffffff
je 0x40973f
lea eax, [ebp - 0x2b8]
push eax
push esi
call dword [0x504054]
push esi
test eax, eax
je 0x409739
mov edi, dword [ebp - 0x290]
call dword [0x504048]
jmp 0x409742
call dword [0x504048]
or edi, 0xffffffff
mov dword [ebp - 0x2f0], edi
call fcn.00433fc0
mov eax, dword [eax]
cmp dword [eax], ebx
je 0x4097ff
lea eax, [ebp - 0x24c]
push eax
call fcn.0040a8f0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x2ec], 1
jb 0x40977c
mov eax, dword [eax]
mov dword [ebp - 0x2fc], eax
lea edx, [ebp - 0x2fc]
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x26c]
call fcn.00417ad0
add esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x230]
push eax
mov dword [ebp - 0x2ec], 3
call fcn.0043a3c0
mov dword [ebp - 4], 2
lea esi, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
mov ebx, 0x800007
mov dword [ebp - 0x2ec], ebx
cmovae esi, dword [ebp - 0x230]
call fcn.00433fc0
push esi
push 0
push 0x511c98
push 0
push eax
call fcn.00436d10
add esp, 0x14
mov dword [ebp - 4], 1
test bl, 4
je 0x40986b
mov edx, dword [ebp - 0x21c]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x40984e
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409844
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8cd
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 0
test bl, 2
je 0x4098d7
mov edx, dword [ebp - 0x258]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x4098ba
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4098b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8cd
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x409926
mov edx, dword [ebp - 0x238]
and ebx, 0xfffffffe
cmp edx, 8
jb 0x409926
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40991c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8cd
push edx
push ecx
call fcn.004cb66f
add esp, 8
cmp edi, 1
jne 0x409959
mov ecx, dword [ebp - 0x2f8]
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x409936
sub edx, esi
sar edx, 1
push edx
push ecx
mov ecx, dword [ebp - 0x308]
call fcn.0043add0
mov al, 1
jmp 0x409e71
cmp edi, 0xffffffff
je 0x409e6f
call fcn.00433fc0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x409a85
xor eax, eax
mov dword [ebp - 0x254], 0x80658073
lea edx, [ebp - 0x254]
mov dword [ebp - 0x250], 0x80728061
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x24c], 0x80688063
mov dword [ebp - 0x248], 0x806e8069
mov dword [ebp - 0x244], 0x80208067
mov dword [ebp - 0x240], 0x806e8069
mov dword [ebp - 0x23c], 0x807b8020
mov dword [ebp - 0x238], 0x8000807d
mov word [ebp - 0x234], ax
call fcn.00416fb0
or ebx, 0x1000000
mov dword [ebp - 4], 3
lea eax, [ebp - 0x284]
or ebx, 8
lea edx, [ebp - 0x2f0]
cmp dword [ebp - 0x270], 8
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x2ec], ebx
cmovae eax, dword [ebp - 0x284]
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x300]
push eax
call fcn.004177d0
add esp, 4
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x230]
or ebx, 0x10
push eax
mov dword [ebp - 0x2ec], ebx
call fcn.0043a3c0
or ebx, 0x2000000
mov dword [ebp - 4], 5
lea esi, [ebp - 0x230]
or ebx, 0x20
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x2ec], ebx
cmovae esi, dword [ebp - 0x230]
call fcn.00433fc0
push esi
push 0
push 0x511c98
push 0
push eax
call fcn.00436d10
add esp, 0x14
mov dword [ebp - 4], 4
test bl, 0x20
je 0x409af1
mov edx, dword [ebp - 0x21c]
and ebx, 0xffffffdf
cmp edx, 8
jb 0x409ad4
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409aca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8d2
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 3
test bl, 0x10
je 0x409b5d
mov edx, dword [ebp - 0x258]
and ebx, 0xffffffef
cmp edx, 8
jb 0x409b40
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409b36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8d2
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
mov dword [ebp - 4], 0xffffffff
test bl, 8
je 0x409bac
mov edx, dword [ebp - 0x270]
and ebx, 0xfffffff7
cmp edx, 8
jb 0x409bac
mov ecx, dword [ebp - 0x284]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409ba2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8d2
push edx
push ecx
call fcn.004cb66f
add esp, 8
push str.kernel32
call dword [0x504088]
mov esi, eax
test esi, esi
je 0x409e6f
lea eax, [ebp - 0x2f0]
mov ecx, esi
push eax
call fcn.00417b70
add esp, 4
test al, al
je 0x409e6f
lea eax, [ebp - 0x30c]
mov ecx, esi
push eax
call fcn.00417cd0
add esp, 4
test al, al
je 0x409e6f
xor edi, edi
lea eax, [ebp - 0x218]
push 0x208
push edi
push eax
mov dword [ebp - 0x300], edi
call fcn.004cd810
mov ecx, dword [ebp - 0x2f8]
lea eax, [ebp - 0x218]
add esp, 0xc
mov dword [ebp - 0x2fc], 0x104
push eax
lea eax, [ebp - 0x2fc]
push eax
push edi
push ecx
call dword [ebp - 0x2f0]
mov dword [ebp - 0x2f0], eax
cmp eax, 0xffffffff
jne 0x409e8d
call fcn.00433fc0
mov eax, dword [eax]
cmp dword [eax], edi
je 0x409d58
lea edx, [ebp - 0x254]
mov dword [ebp - 0x254], 0x806e8049
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x250], 0x80618076
mov dword [ebp - 0x24c], 0x8069806c
mov dword [ebp - 0x248], 0x80208064
mov dword [ebp - 0x244], 0x80618068
mov dword [ebp - 0x240], 0x8064806e
mov dword [ebp - 0x23c], 0x8065806c
mov dword [ebp - 0x238], 0x8000
call fcn.00416fb0
or ebx, 0x4000000
mov dword [ebp - 4], 6
lea eax, [ebp - 0x26c]
or ebx, 0x40
lea edx, [ebp - 0x2f0]
cmp dword [ebp - 0x258], 8
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x2ec], ebx
cmovae eax, dword [ebp - 0x26c]
mov dword [ebp - 0x2f0], eax
call fcn.00417750
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x230]
or ebx, 0x80
push eax
mov dword [ebp - 0x2ec], ebx
call fcn.0043a3c0
or ebx, 0x8000000
mov dword [ebp - 4], 8
lea esi, [ebp - 0x230]
or ebx, 0x100
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x2ec], ebx
cmovae esi, dword [ebp - 0x230]
call fcn.00433fc0
push esi
push edi
push 0x511c98
push edi
push eax
call fcn.00436d10
add esp, 0x14
test ebx, 0x100
je 0x409dc3
mov edx, dword [ebp - 0x21c]
and ebx, 0xfffffeff
cmp edx, 8
jb 0x409da6
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409d9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8d7
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
test bl, bl
jns 0x409e2a
mov edx, dword [ebp - 0x270]
and ebx, 0xffffff7f
cmp edx, 8
jb 0x409e0d
mov ecx, dword [ebp - 0x284]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409e03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8d7
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
test bl, 0x40
je 0x409e6f
mov edx, dword [ebp - 0x258]
cmp edx, 8
jb 0x409e6f
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409e65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8d7
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cb63e
mov esp, ebp
pop ebp
ret
call fcn.00433fc0
mov eax, dword [eax]
cmp dword [eax], edi
je 0x409f9b
lea edx, [ebp - 0x230]
mov dword [ebp - 0x230], 0x806f8063
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x22c], 0x806e8075
mov dword [ebp - 0x228], 0x80208074
mov dword [ebp - 0x224], 0x8020803d
mov dword [ebp - 0x220], 0x807d807b
mov dword [ebp - 0x21c], 0x8000
call fcn.00416fb0
or ebx, 0x10000000
mov dword [ebp - 4], 9
lea eax, [ebp - 0x24c]
or ebx, 0x200
lea edx, [ebp - 0x2f8]
cmp dword [ebp - 0x238], 8
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x2ec], ebx
cmovae eax, dword [ebp - 0x24c]
mov dword [ebp - 0x2f8], eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.00417e30
add esp, 4
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x26c]
or ebx, 0x400
push eax
mov dword [ebp - 0x2ec], ebx
call fcn.0043a3c0
or ebx, 0x20000000
mov dword [ebp - 4], 0xb
lea esi, [ebp - 0x26c]
or ebx, 0x800
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x2ec], ebx
cmovae esi, dword [ebp - 0x26c]
call fcn.00433fc0
push esi
push 0
push 0x511c98
push 0
push eax
call fcn.00436d10
add esp, 0x14
mov dword [ebp - 4], 0xa
test ebx, 0x800
je 0x40a00d
mov edx, dword [ebp - 0x258]
and ebx, 0xfffff7ff
cmp edx, 8
jb 0x409ff0
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409fe6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8dc
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
mov dword [ebp - 4], 9
test ebx, 0x400
je 0x40a07f
mov edx, dword [ebp - 0x270]
and ebx, 0xfffffbff
cmp edx, 8
jb 0x40a062
mov ecx, dword [ebp - 0x284]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a058
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8dc
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
mov dword [ebp - 4], 0xffffffff
test ebx, 0x200
je 0x40a0d4
mov edx, dword [ebp - 0x238]
and ebx, 0xfffffdff
cmp edx, 8
jb 0x40a0d4
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a0ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8dc
push edx
push ecx
call fcn.004cb66f
add esp, 8
call fcn.00433fc0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x40a1dd
lea edx, [ebp - 0x230]
mov dword [ebp - 0x230], 0x80468063
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x22c], 0x806c806f
mov dword [ebp - 0x228], 0x80658064
mov dword [ebp - 0x224], 0x80208072
mov dword [ebp - 0x220], 0x807d807b
mov dword [ebp - 0x21c], 0x8000
call fcn.00416fb0
or ebx, 0x40000000
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x284]
or ebx, 0x1000
lea edx, [ebp - 0x304]
cmp dword [ebp - 0x270], 8
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x2ec], ebx
cmovae eax, dword [ebp - 0x284]
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00417ec0
add esp, 4
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x26c]
or ebx, 0x2000
push eax
mov dword [ebp - 0x2ec], ebx
call fcn.0043a3c0
mov dword [ebp - 4], 0xe
lea esi, [ebp - 0x26c]
or ebx, 0x4000
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x2ec], ebx
cmovae esi, dword [ebp - 0x26c]
call fcn.00433fc0
push esi
push 0
push 0x511c98
push 0
push eax
call fcn.00436d10
add esp, 0x14
mov dword [ebp - 4], 0xd
test ebx, 0x4000
je 0x40a24f
mov edx, dword [ebp - 0x258]
and ebx, 0xffffbfff
cmp edx, 8
jb 0x40a232
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a228
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8cd
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
mov dword [ebp - 4], 0xc
test ebx, 0x2000
je 0x40a2c1
mov edx, dword [ebp - 0x238]
and ebx, 0xffffdfff
cmp edx, 8
jb 0x40a2a4
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a29a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8cd
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov dword [ebp - 4], 0xffffffff
test ebx, 0x1000
je 0x40a316
mov edx, dword [ebp - 0x270]
and ebx, 0xffffefff
cmp edx, 8
jb 0x40a316
mov ecx, dword [ebp - 0x284]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a30c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8cd
push edx
push ecx
call fcn.004cb66f
add esp, 8
push 2
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x2f8]
call fcn.00403d10
add esp, 4
mov dword [ebp - 4], 0xf
call fcn.00433fc0
mov esi, dword [ebp - 0x2f8]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x40a468
cmp esi, 0xffffffff
je 0x40a356
test esi, esi
je 0x40a356
mov al, 1
jmp 0x40a358
xor al, al
lea edx, [ebp - 0x2a4]
mov byte [ebp - 0x2f1], al
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x2a4], 0x806e8069
mov dword [ebp - 0x2a0], 0x80738075
mov dword [ebp - 0x29c], 0x80208065
mov dword [ebp - 0x298], 0x80618076
mov dword [ebp - 0x294], 0x8069806c
mov dword [ebp - 0x290], 0x80208064
mov dword [ebp - 0x28c], 0x807d807b
mov dword [ebp - 0x288], 0x8000
call fcn.00416fb0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x284]
or ebx, 0x8000
lea edx, [ebp - 0x304]
cmp dword [ebp - 0x270], 8
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x2ec], ebx
cmovae eax, dword [ebp - 0x284]
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x2f1]
push eax
call fcn.00417f40
add esp, 4
mov dword [ebp - 4], 0x11
lea ecx, [ebp - 0x26c]
or ebx, 0x10000
push eax
mov dword [ebp - 0x2ec], ebx
call fcn.0043a3c0
mov dword [ebp - 4], 0x12
lea edi, [ebp - 0x26c]
or ebx, 0x20000
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x2ec], ebx
cmovae edi, dword [ebp - 0x26c]
call fcn.00433fc0
push edi
push 0
push 0x511c98
push 0
push eax
call fcn.00436d10
mov edi, dword [ebp - 0x300]
add esp, 0x14
mov dword [ebp - 4], 0x11
test ebx, 0x20000
je 0x40a4da
mov edx, dword [ebp - 0x258]
and ebx, 0xfffdffff
cmp edx, 8
jb 0x40a4bd
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a4b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8cd
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
mov dword [ebp - 4], 0x10
test ebx, 0x10000
je 0x40a54c
mov edx, dword [ebp - 0x238]
and ebx, 0xfffeffff
cmp edx, 8
jb 0x40a52f
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a525
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8cd
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov dword [ebp - 4], 0xf
test ebx, 0x8000
je 0x40a5a1
mov edx, dword [ebp - 0x270]
and ebx, 0xffff7fff
cmp edx, 8
jb 0x40a5a1
mov ecx, dword [ebp - 0x284]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a597
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8cd
push edx
push ecx
call fcn.004cb66f
add esp, 8
cmp esi, 0xffffffff
je 0x40a5fe
test esi, esi
je 0x40a5fe
test edi, edi
jg 0x40a659
inc edi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x300], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a5c2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x308]
push eax
call fcn.0043add0
test esi, esi
je 0x40a5fe
call dword [0x504188]
push esi
mov edi, eax
call dword [0x504048]
push edi
call dword [0x504178]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2f8], 0xffffffff
push 0
push eax
call fcn.004cd810
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x2f0]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2fc], 0x104
push eax
lea eax, [ebp - 0x2fc]
push eax
push edi
call dword [ebp - 0x30c]
test eax, eax
je 0x40a678
mov edi, dword [ebp - 0x300]
jmp 0x40a0d4
mov ecx, dword [ebp - 0x308]
call fcn.00439280
push esi
mov dword [ebp - 4], 0xffffffff
call dword [0x504048]
mov edi, dword [ebp - 0x2f0]
call fcn.00433fc0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x40a79a
call dword [0x504188]
mov dword [ebp - 0x30c], eax
lea edx, [ebp - 0x250]
xor eax, eax
mov dword [ebp - 0x250], 0x8061806c
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x24c], 0x80748073
mov dword [ebp - 0x248], 0x80658020
mov dword [ebp - 0x244], 0x80728072
mov dword [ebp - 0x240], 0x8072806f
mov dword [ebp - 0x23c], 0x807b8020
mov dword [ebp - 0x238], 0x8000807d
mov word [ebp - 0x234], ax
call fcn.00416fb0
mov dword [ebp - 4], 0x13
lea eax, [ebp - 0x29c]
or ebx, 0x40000
lea edx, [ebp - 0x304]
cmp dword [ebp - 0x288], 8
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2ec], ebx
cmovae eax, dword [ebp - 0x29c]
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x30c]
push eax
call fcn.00417e30
add esp, 4
mov dword [ebp - 4], 0x14
lea ecx, [ebp - 0x2d0]
or ebx, 0x80000
push eax
mov dword [ebp - 0x2ec], ebx
call fcn.0043a3c0
mov dword [ebp - 4], 0x15
lea esi, [ebp - 0x2d0]
or ebx, 0x100000
cmp dword [ebp - 0x2bc], 8
mov dword [ebp - 0x2ec], ebx
cmovae esi, dword [ebp - 0x2d0]
call fcn.00433fc0
push esi
push 0
push 0x511c98
push 0
push eax
call fcn.00436d10
add esp, 0x14
test ebx, 0x100000
je 0x40a805
mov edx, dword [ebp - 0x2bc]
and ebx, 0xffefffff
cmp edx, 8
jb 0x40a7e8
mov ecx, dword [ebp - 0x2d0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a7de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8e1
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2bc], 7
mov word [ebp - 0x2d0], ax
test ebx, 0x80000
je 0x40a870
mov edx, dword [ebp - 0x2d4]
and ebx, 0xfff7ffff
cmp edx, 8
jb 0x40a853
mov ecx, dword [ebp - 0x2e8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a849
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8e1
push edx
push ecx
call fcn.004cb66f
add esp, 8
xor eax, eax
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 7
mov word [ebp - 0x2e8], ax
test ebx, 0x40000
je 0x40a8b4
mov edx, dword [ebp - 0x288]
cmp edx, 8
jb 0x40a8b4
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a8aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8e1
push edx
push ecx
call fcn.004cb66f
add esp, 8
push edi
call dword [0x50408c]
mov eax, dword [ebp - 0x308]
cmp dword [eax + 0x10], 0
setne al
jmp 0x409e71
call fcn.004d05ef
call fcn.004d05ef
call fcn.004d05ef
call fcn.004d05ef
call fcn.004d05ef
int3