Function at 0x10034520
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100594c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
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 - 0x124], 0
lea ecx, [ebp - 0x2e8]
call fcn.10009ae0
mov ecx, str.WantedLevelEditor.xml
mov dword [ebp - 4], 0
call fcn.1003bb90
push eax
lea ecx, [ebp - 0x2e8]
call fcn.10009f70
test eax, eax
jne 0x10034bc9
mov edx, str.ZoneSettings
mov ecx, 0x1006ad80
call fcn.10037de0
test al, al
je 0x10034bc9
mov esi, dword [ebp - 0x2cc]
test esi, esi
je 0x100345fc
nop dword [eax + eax]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
mov edi, eax
test edi, edi
je 0x100345f5
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x18]
call edx
test eax, eax
je 0x100345cf
xor eax, eax
jmp 0x100345d7
lea ecx, [edi + 0xc]
call fcn.10007e00
cmp eax, str.misc
je 0x100345fe
push 0x7fffffff
push str.misc
push eax
call fcn.10043530
add esp, 0xc
test eax, eax
je 0x100345fe
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x100345b0
xor edi, edi
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x10034651
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
mov edi, eax
test edi, edi
je 0x1003464a
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x18]
call eax
test eax, eax
je 0x10034624
xor eax, eax
jmp 0x1003462c
lea ecx, [edi + 0xc]
call fcn.10007e00
cmp eax, str.enable_general_settings
je 0x10034653
push 0x7fffffff
push str.enable_general_settings
push eax
call fcn.10043530
add esp, 0xc
test eax, eax
je 0x10034653
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x10034605
xor edi, edi
push str.false
push 0x10062d88
lea eax, [ebp - 0xd8]
push 0xc8
push eax
call fcn.10007bc0
add esp, 0x10
lea eax, [ebp - 0xd8]
mov ecx, edi
push eax
call fcn.100091b0
push ecx
push str.WantedLevelEditor.xml
lea ecx, [ebp - 0x2e8]
call fcn.1000a0b0
movzx eax, byte [0x100ec940]
push eax
mov eax, 0x580750
call eax
add esp, 4
mov ecx, 0x1006ad80
push 0xc
push str.ZoneSettings
call fcn.10037420
mov eax, dword [0x1025c244]
test al, 1
jne 0x100346e7
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 - 0xe0]
push eax
push 0x40
mov esi, 0x582029
mov dword [ebp - 0xe4], 4
push 4
push esi
mov dword [ebp - 0xe8], esi
call edi
test eax, eax
setne byte [ebp - 0xdc]
mov dword [esi], 0xc
cmp byte [ebp - 0xdc], 0
je 0x1003474a
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp - 0xe4]
mov dword [ebp - 0x124], eax
push dword [ebp - 0xe8]
call edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf0]
mov eax, dword [0x1006b1b8]
inc eax
mov dword [ebp - 0xe0], 0
push eax
mov dword [ebp - 0xdc], 0xf
mov byte [ebp - 0xf0], 0
mov dword [ebp - 0x124], 1
call fcn.10038e60
mov edx, dword [ebp - 0xdc]
mov eax, edx
mov ecx, dword [ebp - 0xe0]
sub eax, ecx
push 1
push 0x1006359c
cmp eax, 1
jb 0x100347cb
cmp edx, 0x10
lea esi, [ebp - 0xf0]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0xf0]
add esi, ecx
mov dword [ebp - 0xe0], eax
push esi
call fcn.1003ef40
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x100347e5
mov byte [ebp - 0x128], 0
lea ecx, [ebp - 0xf0]
push dword [ebp - 0x128]
push 1
call fcn.10038840
push 0x1006b1a8
lea ecx, [ebp - 0xf0]
call fcn.10037170
mov edx, dword [ebp - 0xdc]
mov eax, edx
mov ecx, dword [ebp - 0xe0]
sub eax, ecx
push 1
push 0x10063598
cmp eax, 1
jb 0x10034841
cmp edx, 0x10
lea esi, [ebp - 0xf0]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0xf0]
add esi, ecx
mov dword [ebp - 0xe0], eax
push esi
call fcn.1003ef40
add esp, 0xc
mov byte [esi + 1], 0
lea eax, [ebp - 0xf0]
jmp 0x1003485b
mov byte [ebp - 0x128], 0
lea ecx, [ebp - 0xf0]
push dword [ebp - 0x128]
push 1
call fcn.10038840
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x124], 3
movups xmmword [ebp - 0x108], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xf8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 0x1006af38
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 2
call fcn.10037170
mov ecx, 0x1006b3b8
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x120], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x120]
push eax
movq qword [ebp - 0x110], xmm0
call fcn.100372d0
mov edx, dword [ebp - 0x10c]
cmp edx, 0x10
jb 0x10034928
mov ecx, dword [ebp - 0x120]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003491e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10034bef
push edx
push ecx
call fcn.1003bfed
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xf4]
cmp edx, 0x10
jb 0x10034966
mov ecx, dword [ebp - 0x108]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003495c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10034bf4
push edx
push ecx
call fcn.1003bfed
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
cmp edx, 0x10
jb 0x100349bf
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100349b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10034bf9
push edx
push ecx
call fcn.1003bfed
add esp, 8
cmp dword [0x1006af64], 0x10
mov eax, 0x1006af50
push 1
cmovae eax, dword [0x1006af50]
push 1
push 1
push 4
sub esp, 0xc
mov dword [0x1013c9b0], eax
mov eax, 0x582300
mov dword [esp + 8], 0x42480000
mov dword [esp + 4], 0x432a0000
mov dword [esp], 0x41e80000
push str.CITY
push 0
call eax
push str.ZONE11
push str.ZONE10
push str.ZONE_9
push str.ZONE_8
push str.ZONE_7
push str.ZONE_6
push str.ZONE_5
push str.ZONE_4
push str.ZONE_3
push str.ZONE_2
push str.ZONE_1
push str.ZONE_0
movzx eax, al
push str.TOWN
push 0
mov dword [0x100ec940], eax
push eax
mov eax, 0x581e00
call eax
add esp, 0x60
mov ecx, 0xc9bee4
call fcn.1003b890
mov ecx, 0xc9bee8
mov word [0x1023ca64], ax
call fcn.1003b890
mov ax, word [0x1023ca64]
mov ecx, 0xc9bee4
shr ax, 1
mov word [0x1009c908], ax
call fcn.1003b890
mov ecx, 0xc9bee8
mov word [0x1023ca64], ax
call fcn.1003b890
movzx esi, word [0x1023ca64]
mov eax, 0x66666667
mov ecx, esi
shr ecx, 1
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [0x1009c908], ax
mov eax, 0xcccccccd
mul esi
shr edx, 2
movzx eax, dx
push eax
movzx eax, byte [0x100ec940]
push 0
push eax
mov eax, 0x582050
mov word [0x1017ca00], dx
call eax
mov ecx, dword [0x100ec940]
xor edx, edx
push 1
call fcn.100386b0
mov ecx, dword [0x100ec940]
mov edx, 1
push 1
call fcn.100386b0
mov ecx, dword [0x100ec940]
mov edx, 2
push 1
call fcn.100386b0
mov ecx, dword [0x100ec940]
mov edx, 3
push 1
call fcn.100386b0
mov ecx, dword [0x100ec940]
mov edx, 4
push 1
call fcn.100386b0
mov ecx, dword [0x100ec940]
mov edx, 5
push 1
call fcn.100386b0
mov ecx, dword [0x100ec940]
mov edx, 6
push 1
call fcn.100386b0
mov ecx, dword [0x100ec940]
mov edx, 7
push 1
call fcn.100386b0
mov ecx, dword [0x100ec940]
mov edx, 8
push 1
call fcn.100386b0
mov ecx, dword [0x100ec940]
mov edx, 9
push 1
call fcn.100386b0
mov ecx, dword [0x100ec940]
mov edx, 0xa
push 1
call fcn.100386b0
mov ecx, dword [0x100ec940]
mov edx, 0xb
push 1
call fcn.100386b0
mov eax, dword [0xb7cb84]
add esp, 0x3c
mov dword [0x1025b6c8], eax
lea ecx, [ebp - 0x2e8]
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
int3