Function at 0x42fb10
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4c5af4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push 0
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
push ecx
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
mov dword [esp + 0x40], 0
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::constructor_class_CTString_const__]
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00419730
mov edi, dword [sym.imp.engine.dll_public:_void___thiscall_CTextureObject::constructor_void_]
lea ecx, [esi + 0x27c]
mov byte [esp + 0x1c], 1
mov dword [esi], 0x4d6e48
call edi
lea ecx, [esi + 0x294]
mov byte [esp + 0x1c], 2
call edi
lea ecx, [esi + 0x2ac]
mov byte [esp + 0x1c], 3
call edi
lea ecx, [esi + 0x2c4]
mov byte [esp + 0x1c], 4
call edi
lea ecx, [esi + 0x2dc]
mov byte [esp + 0x1c], 5
call edi
lea ecx, [esi + 0x2f4]
mov byte [esp + 0x1c], 6
call edi
lea ecx, [esi + 0x30c]
mov byte [esp + 0x1c], 7
call edi
mov edx, dword [sym.imp.engine.dll_public:_void___thiscall_CTextureObject::destructor_void_]
push edx
push edi
push 2
push 0x18
lea eax, [esi + 0x324]
push eax
mov byte [esp + 0x30], 8
call fcn.004c027a
mov ebx, 9
lea ecx, [esi + 0x354]
mov byte [esp + 0x1c], bl
call edi
lea ecx, [esi + 0x36c]
mov byte [esp + 0x1c], 0xa
call edi
lea ecx, [esi + 0x384]
mov byte [esp + 0x1c], 0xb
call edi
lea ecx, [esi + 0x39c]
mov byte [esp + 0x1c], 0xc
call edi
lea ecx, [esi + 0x3b4]
mov byte [esp + 0x1c], 0xd
call edi
lea ecx, [esi + 0x3cc]
mov byte [esp + 0x1c], 0xe
call edi
lea ecx, [esi + 0x3e4]
mov byte [esp + 0x1c], 0xf
call edi
lea ecx, [esi + 0x3fc]
mov byte [esp + 0x1c], 0x10
call edi
lea ecx, [esi + 0x414]
mov byte [esp + 0x1c], 0x11
call edi
lea ecx, [esi + 0x42c]
mov byte [esp + 0x1c], 0x12
call edi
lea ecx, [esi + 0x444]
mov byte [esp + 0x1c], 0x13
call edi
lea ecx, [esi + 0x460]
mov byte [esp + 0x1c], 0x14
call edi
lea ecx, [esi + 0x478]
mov byte [esp + 0x1c], 0x15
call edi
lea ecx, [esi + 0x490]
mov byte [esp + 0x1c], 0x16
call edi
mov ecx, esi
mov byte [esp + 0x1c], 0x17
call fcn.0042f3c0
mov ecx, esi
call fcn.0042f450
mov ebp, 0x16
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], 8
mov dword [esp + 0x34], 0x22
mov dword [esp + 0x38], 0x1a4
mov dword [esp + 0x2c], 0x6b
call fcn.004031e0
test eax, eax
je 0x42fd21
mov dword [esp + 0x3c], 0xa
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x143
mov dword [esp + 0x2c], 0x38
lea ecx, [esi + 0x22c]
xor ebx, ebx
mov dword [esp + 0x40], ecx
jmp 0x42fd33
mov ebp, dword [esp + 0x3c]
call fcn.00471b70
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov cl, byte [eax + 0x1a3]
test cl, cl
jne 0x42fd52
cmp ebx, 0xa
je 0x42fe76
add ebp, 0x92
cmp ebx, 0xa
jl 0x42fd78
lea ecx, [ebx - 0xa]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x38]
jmp 0x42fd88
mov eax, 0xcccccccd
mul ebx
mov eax, dword [esp + 0x34]
shr edx, 2
mov edi, edx
imul edi, ebp
add edi, eax
xor edx, edx
mov ecx, 5
mov eax, ebx
div ecx
mov ecx, dword [esp + 0x2c]
push 0x2a4
mov ebp, edx
mov edx, dword [esp + 0x34]
add edx, 0x31
imul ebp, edx
add ebp, ecx
call fcn.004bf8c2
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x1c], 0x18
je 0x42fdd3
push 0x136
push esi
mov ecx, eax
call fcn.0042f8c0
jmp 0x42fdd5
xor eax, eax
mov ecx, dword [esp + 0x40]
push 0x31
push 0x92
push ebp
push edi
mov dword [ecx], eax
push ebx
mov ecx, eax
mov byte [esp + 0x30], 0x17
call fcn.0042f120
call fcn.00471b70
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
cmp byte [eax + 0x1a3], 2
push 0
push 0
jne 0x42fe12
mov eax, dword [esp + 0x48]
mov edi, dword [eax]
jmp 0x42fe1d
cmp ebx, 0xa
jge 0x42fe34
mov ecx, dword [esp + 0x48]
mov edi, dword [ecx]
lea eax, [esi + 0x2ac]
push eax
mov ecx, edi
call dword [sym.imp.uitoolkit.dll_public:_void___thiscall_csButton::SetBitmap_class_CTextureObject___class_CTextureObject___class_CTextureObject__]
lea eax, [esi + 0x2c4]
jmp 0x42fe4f
mov edx, dword [esp + 0x48]
mov edi, dword [edx]
lea eax, [esi + 0x27c]
push eax
mov ecx, edi
call dword [sym.imp.uitoolkit.dll_public:_void___thiscall_csButton::SetBitmap_class_CTextureObject___class_CTextureObject___class_CTextureObject__]
lea eax, [esi + 0x294]
mov ecx, dword [esp + 0x40]
mov dword [edi + 0x18c], eax
inc ebx
add ecx, 4
cmp ebx, 0x14
lea eax, [esi + 0x2dc]
mov dword [edi + 0x190], eax
mov dword [esp + 0x40], ecx
jl 0x42fd2f
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::destructor_void_]
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x20