Function at 0x4420c1
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
call fcn.00451ee0
mov dword [ebp - 8], eax
call fcn.00451eea
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0x20
mov dword [ebp - 4], 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0x40
test ecx, ecx
jne 0x4420fe
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
and eax, 2
test eax, eax
je 0x442106
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 4], ecx
cmp dword [0x4a4580], 1
je 0x44252b
cmp dword [0x4a4584], 1
je 0x44252b
mov edx, dword [0x4a457c]
and edx, 1
test edx, edx
jne 0x44252b
mov eax, dword [0x4a58e8]
and eax, 0x100
test eax, eax
je 0x4422a1
mov dword [ebp - 0x18], 0x4a6a80
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
add edx, 2
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
sub eax, 2
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
sub edx, 2
push edx
push 0x4ae3c0
call fcn.00402920
add esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4421bc
mov eax, dword [0x4a6ac4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
sar edx, 0x10
sub edx, 0x80
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
sar ecx, 0x10
push ecx
call fcn.0043a898
add esp, 8
call fcn.00442067
jmp 0x4422a1
mov dword [ebp - 0x18], 0x4ae3c0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
add eax, 2
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
add edx, 2
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
sub ecx, 2
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
sub eax, 2
push eax
push 0x4a6a80
call fcn.00402920
add esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x442232
mov ecx, dword [0x4ae404]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
sar eax, 0x10
sub eax, 0x80
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
sar edx, 0x10
push edx
call fcn.0043a898
add esp, 8
call fcn.00442067
jmp 0x4422a1
cmp dword [0x4a6adc], 0
jne 0x44226c
mov eax, dword [0x4a6ac4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
sar edx, 0x10
sub edx, 0x90
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
sar ecx, 0x10
push ecx
call fcn.0043a898
add esp, 8
call fcn.00442067
jmp 0x4422a1
push 0x4ae3c0
call fcn.0043d033
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x44]
mov dword [ebp - 0x10], eax
push 0x90
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
sar edx, 0x10
push edx
call fcn.0043a898
add esp, 8
call fcn.00442067
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
test ecx, ecx
je 0x442437
mov edx, dword [ebp + 8]
movsx eax, word [edx + 8]
cmp eax, 0xf9
jl 0x44233f
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 8]
cmp edx, 0x187
jge 0x44233f
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xa]
cmp ecx, 0x1b9
jl 0x44233f
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xa]
cmp eax, 0x1d5
jge 0x44233f
mov ecx, dword [ebp + 8]
movsx eax, word [ecx + 8]
sub eax, 0xf9
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xa]
mov ecx, 0x1d5
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub eax, 2
mov dword [ebp - 0x28], eax
push 0x4aa390
push 0x4aa388
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.0043a740
add esp, 0x10
call fcn.00442067
jmp 0x442437
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xa]
cmp edx, 0x160
jl 0x44241a
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xa]
cmp ecx, 0x1d8
jge 0x44241a
mov edx, dword [ebp + 8]
movsx eax, word [edx + 8]
cmp eax, 7
jl 0x4423ae
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 8]
cmp edx, 0x6b
jge 0x4423ae
mov eax, dword [0x4ae404]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
sar edx, 0x10
sub edx, 0x90
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
sar ecx, 0x10
push ecx
call fcn.0043a898
add esp, 8
call fcn.00442067
jmp 0x442418
mov edx, dword [ebp + 8]
movsx eax, word [edx + 8]
cmp eax, 0x215
jl 0x4423fc
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 8]
cmp edx, 0x279
jge 0x4423fc
mov eax, dword [0x4a6ac4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
sar edx, 0x10
sub edx, 0x90
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
sar ecx, 0x10
push ecx
call fcn.0043a898
add esp, 8
call fcn.00442067
jmp 0x442418
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
and eax, 0x10000
test eax, eax
je 0x442418
push 0x48d488
call fcn.0041ca89
add esp, 4
jmp 0x442437
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
and edx, 0x10000
test edx, edx
je 0x442437
push 0x48d488
call fcn.0041ca89
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 1
test ecx, ecx
jne 0x44244f
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xa]
cmp eax, 8
jge 0x442474
mov ecx, dword [0x4aa390]
add ecx, dword [ebp - 4]
mov dword [0x4aa390], ecx
mov edx, dword [0x4a4564]
sub edx, 5
mov dword [0x4a4564], edx
call fcn.00442067
jmp 0x4424b2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 2
test ecx, ecx
jne 0x442491
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xa]
mov ecx, dword [ebp - 0xc]
sub ecx, 8
cmp eax, ecx
jl 0x4424b2
mov edx, dword [0x4aa390]
sub edx, dword [ebp - 4]
mov dword [0x4aa390], edx
mov eax, dword [0x4a4564]
add eax, 5
mov dword [0x4a4564], eax
call fcn.00442067
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 4
test edx, edx
jne 0x4424ca
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 8]
cmp ecx, 8
jge 0x4424ed
mov edx, dword [0x4aa388]
sub edx, dword [ebp - 4]
mov dword [0x4aa388], edx
mov eax, dword [0x4a4560]
sub eax, 5
mov dword [0x4a4560], eax
call fcn.00442067
jmp 0x44252b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 8
test edx, edx
jne 0x44250a
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 8]
mov edx, dword [ebp - 8]
sub edx, 8
cmp ecx, edx
jl 0x44252b
mov eax, dword [0x4aa388]
add eax, dword [ebp - 4]
mov dword [0x4aa388], eax
mov ecx, dword [0x4a4560]
add ecx, 5
mov dword [0x4a4560], ecx
call fcn.00442067
mov edx, dword [0x4a58e8]
and edx, 0x80
test edx, edx
je 0x442583
mov eax, dword [0x4a4688]
and eax, 8
test eax, eax
je 0x442553
mov dword [0x4aa37c], 0xea60
jmp 0x442583
mov ecx, dword [0x4a4688]
and ecx, 0x10
test ecx, ecx
je 0x44256c
mov dword [0x4aa37c], 0xa
jmp 0x442583
mov edx, dword [0x4a4688]
and edx, 4
test edx, edx
je 0x442583
mov dword [0x4a6acc], 0x1d4c0
mov eax, dword [0x4a58e8]
and eax, 1
test eax, eax
je 0x442931
mov ecx, dword [0x4a4640]
and ecx, 0x40000000
test ecx, ecx
je 0x4425bc
mov edx, dword [0x4a6a7c]
add edx, 1
mov dword [0x4a6a7c], edx
call fcn.00441fd5
jmp 0x442931
mov eax, dword [0x4a4644]
and eax, 0x1000
test eax, eax
je 0x4425f6
mov ecx, dword [0x4a6a7c]
sub ecx, 1
mov dword [0x4a6a7c], ecx
cmp dword [0x4a6a7c], 0
jg 0x4425ec
mov dword [0x4a6a7c], 0
call fcn.00441fd5
jmp 0x442931
mov edx, dword [0x4a4640]
and edx, 0x80000000
test edx, edx
je 0x44261d
mov eax, dword [0x4a6a68]
add eax, 1
mov dword [0x4a6a68], eax
call fcn.00441fd5
jmp 0x442931
mov ecx, dword [0x4a4644]
and ecx, 0x2000
test ecx, ecx
je 0x442659
mov edx, dword [0x4a6a68]
sub edx, 1
mov dword [0x4a6a68], edx
cmp dword [0x4a6a68], 0
jg 0x44264f
mov dword [0x4a6a68], 0
call fcn.00441fd5
jmp 0x442931
mov eax, dword [0x4a4644]
and eax, 1
test eax, eax
je 0x44267e
mov ecx, dword [0x4a6a74]
add ecx, 1
mov dword [0x4a6a74], ecx
call fcn.00441fd5
jmp 0x442931
mov edx, dword [0x4a4644]
and edx, 0x4000
test edx, edx
je 0x4426a5
mov eax, dword [0x4a6a74]
sub eax, 1
mov dword [0x4a6a74], eax
call fcn.00441fd5
jmp 0x442931
mov ecx, dword [0x4a4640]
and ecx, 0x80000
test ecx, ecx
je 0x4426dd
mov dword [0x4a6a74], 0x30
mov dword [0x4a6a7c], 0xd0
mov dword [0x4a6a68], 0x200
call fcn.00441fd5
jmp 0x442931
mov edx, dword [0x4a4640]
and edx, 0x100000
test edx, edx
je 0x442715
mov dword [0x4a6a74], 0
mov dword [0x4a6a7c], 0xd0
mov dword [0x4a6a68], 0x26c
call fcn.00441fd5
jmp 0x442931
mov eax, dword [0x4a4640]
and eax, 0x200000
test eax, eax
je 0x44274b
mov dword [0x4a6a74], 0xffffffce
mov dword [0x4a6a7c], 0xd0
mov dword [0x4a6a68], 0x2ee
call fcn.00441fd5
jmp 0x442931
mov ecx, dword [0x4a4640]
and ecx, 0x400000
test ecx, ecx
je 0x442783
mov dword [0x4a6a74], 0xffffffce
mov dword [0x4a6a7c], 0xbe
mov dword [0x4a6a68], 0x36d
call fcn.00441fd5
jmp 0x442931
mov edx, dword [0x4a4684]
and edx, 0x8000000
test edx, edx
je 0x4427a5
push 0x4ae3c0
call fcn.00444b12
add esp, 4
jmp 0x442931
mov eax, dword [0x4a4684]
and eax, 0x10000000
test eax, eax
je 0x4427cc
push 0
push 0x1f6
push 0x4a6a80
call fcn.0043bcb9
add esp, 0xc
jmp 0x442931
mov ecx, dword [0x4a4684]
and ecx, 0x20000000
test ecx, ecx
je 0x4427f2
push 0
push 0x67
push 0x4ae3c0
call fcn.0043bcb9
add esp, 0xc
jmp 0x442931
mov edx, dword [0x4a4684]
and edx, 0x40000000
test edx, edx
je 0x442818
push 0
push 0x68
push 0x4ae3c0
call fcn.0043bcb9
add esp, 0xc
jmp 0x442931
mov eax, dword [0x4a4684]
and eax, 0x80000000
test eax, eax
je 0x44283c
push 0
push 0x64
push 0x4a6a80
call fcn.0043bcb9
add esp, 0xc
jmp 0x442931
mov ecx, dword [0x4a4688]
and ecx, 1
test ecx, ecx
je 0x442862
push 0
push 0xc8
push 0x4a6a80
call fcn.0043bcb9
add esp, 0xc
jmp 0x442931
mov edx, dword [0x4a4688]
and edx, 2
test edx, edx
je 0x442888
push 0
push 0x12c
push 0x4a6a80
call fcn.0043bcb9
add esp, 0xc
jmp 0x442931
mov eax, dword [0x4a4688]
and eax, 0x800000
test eax, eax
je 0x4428ad
call fcn.00436ab1
push str.Things.ini
call fcn.00437d2d
add esp, 4
jmp 0x442931
mov ecx, dword [0x4a4680]
and ecx, 0x10000
test ecx, ecx
je 0x4428d0
push 0
push 0x62
push 0x4ae3c0
call fcn.0043bcb9
add esp, 0xc
jmp 0x442931
mov edx, dword [0x4a4680]
and edx, 0x20000
test edx, edx
je 0x4428f3
push 0
push 0x62
push 0x4a6a80
call fcn.0043bcb9
add esp, 0xc
jmp 0x442931
mov eax, dword [0x4a4680]
and eax, 0x40000
test eax, eax
je 0x442914
push 0
push 0x61
push 0x4ae3c0
call fcn.0043bcb9
add esp, 0xc
jmp 0x442931
mov ecx, dword [0x4a4688]
and ecx, 0x1000000
test ecx, ecx
je 0x442931
push 0x48e440
call fcn.00450460
add esp, 4
mov esp, ebp
pop ebp
ret