Function at 0x100322f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059466
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x1006a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 8
mov dword [ebp - 0xbc], 0
lea ecx, [ebp - 0x288]
call fcn.10009ae0
mov ecx, str.WantedLevelEditor.xml
mov dword [ebp - 4], 0
call fcn.1003bb90
push eax
lea ecx, [ebp - 0x288]
call fcn.10009f70
test eax, eax
jne 0x10032e9a
mov edx, str.Boats_
mov ecx, 0x1006ad80
call fcn.10037de0
test al, al
je 0x10032e9a
push 0xf
push str._boat_occupants
mov ecx, 0x1006b388
call fcn.10037420
mov edx, str.none
mov ecx, 0x1006ad80
call fcn.10037de0
test al, al
je 0x100323a7
movzx eax, byte [0x100ec940]
push eax
mov eax, 0x580750
call eax
add esp, 4
push 6
push str.Boats_
mov ecx, 0x1006ad80
call fcn.10037420
mov eax, dword [0x1025c244]
test al, 1
jne 0x100323ec
or eax, 1
mov dword [0x1025b6cc], 0x1006353c
mov dword [0x1025c244], eax
mov dword [0x1025b6d4], 0
mov dword [0x1025b6d0], 0
call fcn.1000c4c0
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x18]
push eax
push 0x40
mov esi, 0x582029
mov dword [ebp - 0x1c], 4
push 4
push esi
mov dword [ebp - 0x20], esi
call edi
test eax, eax
setne byte [ebp - 0x14]
mov dword [esi], 3
cmp byte [ebp - 0x14], 0
je 0x10032437
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xbc]
push ecx
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0xbc], eax
push dword [ebp - 0x20]
call edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov eax, dword [0x1006b1b8]
inc eax
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0xbc], 1
call fcn.10038e60
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 1
push 0x1006359c
cmp eax, 1
jb 0x1003249d
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.1003ef40
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x100324b4
mov byte [ebp - 0xc0], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0xc0]
push 1
call fcn.10038840
push 0x1006b1a8
lea ecx, [ebp - 0x28]
call fcn.10037170
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 1
push 0x10063598
cmp eax, 1
jb 0x100324fb
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.1003ef40
add esp, 0xc
mov byte [esi + 1], 0
lea eax, [ebp - 0x28]
jmp 0x10032512
mov byte [ebp - 0xc0], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0xc0]
push 1
call fcn.10038840
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0xbc], 3
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 0x1006af38
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10037170
mov ecx, 0x1006b3b8
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x58]
push eax
movq qword [ebp - 0x48], xmm0
call fcn.100372d0
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x100325c1
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100325b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032ec0
push edx
push ecx
call fcn.1003bfed
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x100325f9
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100325ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032ec5
push edx
push ecx
call fcn.1003bfed
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x10032643
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10032639
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032eca
push edx
push ecx
call fcn.1003bfed
add esp, 8
cmp dword [0x1006b3cc], 0x10
lea ecx, [ebp - 0xa0]
movzx edx, byte [0x1006c840]
mov eax, 0x1006b3b8
cmovae eax, dword [0x1006b3b8]
mov dword [0x1013c9b0], eax
call fcn.1000c860
push eax
mov ecx, 0x1006af68
call fcn.100372d0
mov edx, dword [ebp - 0x8c]
cmp edx, 0x10
jb 0x100326b2
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100326a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032ecf
push edx
push ecx
call fcn.1003bfed
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
mov eax, dword [0x1006acb8]
add eax, dword [0x1006aea0]
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0xbc], 0xe
call fcn.10038e60
push 0x1006ae90
lea ecx, [ebp - 0x28]
call fcn.10037170
push 0x1006aca8
lea ecx, [ebp - 0x28]
call fcn.10037170
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 0xb
push str._boat_model
cmp eax, 0xb
jb 0x1003273a
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 0xb]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.1003ef40
add esp, 0xc
mov byte [esi + 0xb], 0
lea eax, [ebp - 0x28]
jmp 0x10032751
mov byte [ebp - 0xc0], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0xc0]
push 0xb
call fcn.10038840
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0xbc], 0x1e
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 0x1006af68
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.10037170
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x78], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x10032807
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100327fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032ed4
push edx
push ecx
call fcn.1003bfed
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10032851
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10032847
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032ed9
push edx
push ecx
call fcn.1003bfed
add esp, 8
mov dword [ebp - 0xc4], 0x1dc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
mov eax, dword [0x1006acb8]
add eax, dword [0x1006aea0]
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0xbc], 0x76
call fcn.10038e60
push 0x1006ae90
lea ecx, [ebp - 0x28]
call fcn.10037170
push 0x1006aca8
lea ecx, [ebp - 0x28]
call fcn.10037170
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 0xf
push str._boat_occupants
cmp eax, 0xf
jb 0x100328e3
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 0xf]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.1003ef40
add esp, 0xc
mov byte [esi + 0xf], 0
lea eax, [ebp - 0x28]
jmp 0x100328fa
mov byte [ebp - 0xc0], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0xc0]
push 0xf
call fcn.10038840
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0xbc], 0xf6
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 0x1006af68
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.10037170
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x100329ad
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100329a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032ede
push edx
push ecx
call fcn.1003bfed
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100329f7
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100329ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032ee3
push edx
push ecx
call fcn.1003bfed
add esp, 8
cmp dword [0x1006b0b4], 0x10
mov eax, 0x1006b0a0
mov esi, dword [ebp - 0x26c]
cmovae eax, dword [0x1006b0a0]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0xbc], eax
test esi, esi
je 0x10032a8a
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
mov edi, eax
test edi, edi
je 0x10032a83
cmp dword [ebp - 0xbc], 0
je 0x10032a8c
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x18]
call edx
test eax, eax
je 0x10032a5e
xor eax, eax
jmp 0x10032a66
lea ecx, [edi + 0xc]
call fcn.10007e00
mov ecx, dword [ebp - 0xbc]
cmp eax, ecx
je 0x10032a8c
push 0x7fffffff
push ecx
push eax
call fcn.10043530
add esp, 0xc
test eax, eax
je 0x10032a8c
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x10032a36
xor edi, edi
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
mov esi, dword [edi + 0x1c]
cmovae eax, dword [ebp - 0x88]
mov dword [ebp - 0xbc], eax
test esi, esi
je 0x10032b04
nop word [eax + eax]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
mov edi, eax
test edi, edi
je 0x10032afd
cmp dword [ebp - 0xbc], 0
je 0x10032b06
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x18]
call eax
test eax, eax
je 0x10032ad8
xor eax, eax
jmp 0x10032ae0
lea ecx, [edi + 0xc]
call fcn.10007e00
mov ecx, dword [ebp - 0xbc]
cmp eax, ecx
je 0x10032b06
push 0x7fffffff
push ecx
push eax
call fcn.10043530
add esp, 0xc
test eax, eax
je 0x10032b06
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x10032ab0
xor edi, edi
lea eax, [ebp - 0xc4]
mov ecx, edi
push eax
call fcn.10009370
cmp dword [0x1006b0b4], 0x10
mov eax, 0x1006b0a0
mov esi, dword [ebp - 0x26c]
cmovae eax, dword [0x1006b0a0]
mov dword [ebp - 0xbc], eax
test esi, esi
je 0x10032b8b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
mov edi, eax
test edi, edi
je 0x10032b84
cmp dword [ebp - 0xbc], 0
je 0x10032b8d
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x18]
call edx
test eax, eax
je 0x10032b5f
xor eax, eax
jmp 0x10032b67
lea ecx, [edi + 0xc]
call fcn.10007e00
mov ecx, dword [ebp - 0xbc]
cmp eax, ecx
je 0x10032b8d
push 0x7fffffff
push ecx
push eax
call fcn.10043530
add esp, 0xc
test eax, eax
je 0x10032b8d
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x10032b37
xor edi, edi
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
mov esi, dword [edi + 0x1c]
cmovae eax, dword [ebp - 0x70]
mov dword [ebp - 0xbc], eax
test esi, esi
je 0x10032bf9
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
mov edi, eax
test edi, edi
je 0x10032bf2
cmp dword [ebp - 0xbc], 0
je 0x10032bfb
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x18]
call eax
test eax, eax
je 0x10032bcd
xor eax, eax
jmp 0x10032bd5
lea ecx, [edi + 0xc]
call fcn.10007e00
mov ecx, dword [ebp - 0xbc]
cmp eax, ecx
je 0x10032bfb
push 0x7fffffff
push ecx
push eax
call fcn.10043530
add esp, 0xc
test eax, eax
je 0x10032bfb
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x10032ba5
xor edi, edi
lea eax, [ebp - 0xc8]
mov ecx, edi
push eax
call fcn.10009370
mov edx, dword [ebp - 0xc4]
xor eax, eax
mov ecx, dword [ebp - 0xc8]
test edx, edx
je 0x10032c1f
test ecx, ecx
jne 0x10032c2a
inc eax
cmp eax, 0xffffffff
jb 0x10032c17
jmp 0x10032e87
sub edx, 0x190
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xc4], edx
call fcn.1000c860
push eax
lea ecx, [ebp - 0x88]
call fcn.100372d0
mov edx, dword [ebp - 0xa4]
cmp edx, 0x10
jb 0x10032c87
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10032c7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032ee8
push edx
push ecx
call fcn.1003bfed
add esp, 8
mov edx, dword [ebp - 0xc8]
lea ecx, [ebp - 0xb8]
call fcn.1000c860
push eax
lea ecx, [ebp - 0x70]
call fcn.100372d0
mov edx, dword [ebp - 0xa4]
cmp edx, 0x10
jb 0x10032cdb
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10032cd1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032eed
push edx
push ecx
call fcn.1003bfed
add esp, 8
lea eax, [ebp - 0x88]
mov edx, 0x100637f4
push eax
lea ecx, [ebp - 0xa0]
call fcn.10037c50
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x8c], 0x10
lea edi, [ebp - 0xa0]
push eax
cmovae edi, dword [ebp - 0xa0]
lea ecx, [ebp - 0x58]
mov edx, 0x10064f08
call fcn.10037c50
add esp, 8
push 1
mov byte [ebp - 4], 0xe
lea esi, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
mov eax, 0x582300
push 1
cmovae esi, dword [ebp - 0x58]
push 1
push 2
sub esp, 0xc
mov dword [esp + 8], 0x42480000
mov dword [esp + 4], 0x432a0000
mov dword [esp], 0x41e80000
push dword [0x1013c9b0]
push 0
call eax
push str.DUMMY
push str.DUMMY
push str.DUMMY
push str.DUMMY
push str.DUMMY
push str.DUMMY
push str.DUMMY
push str.DUMMY
push str.DUMMY
push 0x10065208
push str.CHAR
push str.VHCL
push dword [0x1012c980]
movzx eax, al
push 0
mov dword [0x100ec940], eax
push eax
mov eax, 0x581e00
call eax
add esp, 0x60
movzx eax, byte [0x100ec940]
push str.DUMMY
push str.DUMMY
push str.DUMMY
push str.DUMMY
push str.DUMMY
push str.DUMMY
push str.DUMMY
push str.DUMMY
push str.DUMMY
push esi
push str.ELINE
push edi
push str.DUMMY
push 1
push eax
mov eax, 0x581e00
call eax
movzx eax, byte [0x100ec940]
mov esi, 0x582050
push 0xfa
push 0
push eax
call esi
movzx eax, byte [0x100ec940]
add esp, 0x48
push 0xfa
push 1
push eax
call esi
mov edx, dword [ebp - 0x44]
add esp, 0xc
mov eax, dword [0xb7cb84]
mov dword [0x1025b6c8], eax
cmp edx, 0x10
jb 0x10032e6a
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10032e60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032ef2
push edx
push ecx
call fcn.1003bfed
add esp, 8
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.10037280
lea ecx, [ebp - 0x70]
call fcn.10037280
lea ecx, [ebp - 0x88]
call fcn.10037280
lea ecx, [ebp - 0x288]
call fcn.10009d40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003bfa7
mov esp, ebp
pop ebp
ret
call fcn.1004910a
call fcn.1004910a
call fcn.1004910a
call fcn.1004910a
call fcn.1004910a
call fcn.1004910a
call fcn.1004910a
call fcn.1004910a
call fcn.1004910a
call fcn.1004910a
call fcn.1004910a
int3