Function at 0x415e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ea3b
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4634b0]
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 edi, ecx
mov dword [ebp - 0x8c], edi
push 6
push str.iMoney
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
call fcn.0040ba70
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00418550
mov ebx, eax
cmp byte [ebx + 0x2c], 0
je 0x415ea1
mov bl, 1
jmp 0x416263
push 0x82
push str.83_3D_00_02_15_02_01_75_0E_C7_80_GameMoney_7F_96_98_00_31_D2_EB_10_83_3D_04_02_15_02_00_74_07_0F_AF_15_04_02_15_02_8B_88_GameMoney
lea ecx, [ebp - 0x70]
mov dword [ebx + 8], 0
mov dword [ebx], 0
mov dword [ebx + 4], 2
mov word [ebx + 0x30], 0x100
mov byte [ebx + 0x2d], 1
mov byte [ebx + 0x2f], 1
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.0040ba70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
push 0xf
push str.8B_88_GameMoney
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.0040ba70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push 0x1b
push str.8B_88_GameMoney_03_CA_89_88
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.0040ba70
lea eax, [ebx + 0x34]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
mov dword [ebx], 0
cmp eax, ecx
je 0x415f51
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.0040b680
lea ecx, [ebx + 0x4c]
lea eax, [ebp - 0x58]
cmp ecx, eax
je 0x415f65
push 0xffffffffffffffff
push 0
push eax
call fcn.0040b680
lea eax, [ebx + 0x64]
lea ecx, [ebp - 0x70]
cmp eax, ecx
je 0x415f7b
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.0040b680
cmp dword [ebp - 0x2c], 0x10
jb 0x415f8c
push dword [ebp - 0x40]
call fcn.00434302
add esp, 4
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x415faf
push dword [ebp - 0x58]
call fcn.00434302
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x415fd6
push dword [ebp - 0x70]
call fcn.00434302
add esp, 4
push ecx
push str.StateRecorder
push str.GameMoney
mov ecx, ebx
call fcn.0040cd40
push 0xe
push str.LootController
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040ba70
lea eax, [edi + 0x1c4]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x90], eax
push ecx
mov ecx, eax
call fcn.00403680
mov esi, eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x94], esi
jb 0x416041
push dword [ebp - 0x28]
call fcn.00434302
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
test esi, esi
je 0x416149
push ecx
mov ecx, dword [ebp - 0x90]
call fcn.00402ac0
mov edi, dword [ebp - 0x94]
mov esi, dword [esi + 0x3c]
mov edi, dword [edi + 0x40]
cmp esi, edi
je 0x416143
mov eax, dword [ebp - 0x8c]
add eax, 0x68
mov dword [ebp - 0x98], eax
lea ebx, [ebx]
mov eax, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x41609a
mov eax, dword [eax]
mov ecx, dword [0x468c60]
push eax
call fcn.004028e0
test eax, eax
je 0x4160bb
push eax
mov dword [ebx + 0x10], eax
call fcn.00402bc0
mov ecx, dword [ebx + 0x10]
add ecx, eax
mov dword [ebx + 0x14], ecx
mov ecx, 0x10000
or edx, 0xffffffff
cmp dword [ebx + 8], ecx
ja 0x416143
mov eax, dword [ebx + 0x10]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebx + 0x14]
test eax, eax
mov dword [ebp - 0x90], ecx
cmovne edx, eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x94], edx
lea eax, [ebx + 0x34]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0040b680
mov ecx, dword [ebp - 0x98]
push 0x40
push dword [ebp - 0x94]
push dword [ebp - 0x90]
push 0
push 1
call fcn.0041a3c0
mov ecx, dword [ebx + 0x18]
add eax, ecx
cmp eax, 0x10000
mov dword [ebx + 8], eax
setae al
test al, al
jne 0x416143
add esi, 4
cmp esi, edi
jne 0x416090
mov edi, dword [ebp - 0x8c]
mov eax, dword [edi + 0x6c]
push 0x40
push 0x3000
push 0x800
push 0
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push eax
push ecx
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x64]
push 0x2150000
push eax
call fcn.0040d2b0
push 1
push 0x45afe4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040ba70
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
mov esi, dword [ebx + 0xc]
mov ecx, edi
push eax
add esi, 0x200
call fcn.004184a0
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x1c], 1
mov dword [eax + 0x20], 0
mov byte [eax + 0x30], 1
mov byte [eax + 0x2e], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x4161e3
push dword [ebp - 0x28]
call fcn.00434302
add esp, 4
push 4
push str.MTP1
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040ba70
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
mov esi, dword [ebx + 0xc]
mov ecx, edi
push eax
add esi, 0x204
call fcn.004184a0
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x1c], 1
mov dword [eax + 0x20], 0
mov byte [eax + 0x30], 1
mov byte [eax + 0x2e], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x416250
push dword [ebp - 0x28]
call fcn.00434302
add esp, 4
sub esp, 0x18
lea eax, [ebp - 0x88]
mov ecx, edi
push eax
call fcn.00416990
mov bl, al
cmp dword [ebp - 0x74], 0x10
jb 0x416277
push dword [ebp - 0x88]
call fcn.00434302
add esp, 4
mov al, bl
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.00434307
mov esp, ebp
pop ebp
ret