Function at 0x499fd0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x59a16a
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60aecc]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x2c], esi
xor ebx, ebx
lea ecx, [esi + 4]
xor edi, edi
mov dword [esp + 0x20], ebx
call fcn.004993d0
mov dword [esp + 0x8c], edi
call fcn.004de840
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.100000000
mov dword [0x614278], esi
call fcn.00496da0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.memorymax
mov byte [esp + 0x98], 1
call fcn.00496da0
mov byte [esp + 0x94], bl
call fcn.00499d50
add esp, 4
mov ecx, esp
mov dword [esp + 0x34], esp
push str.100000000
call fcn.00496da0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.texturememorymax
mov byte [esp + 0x98], 2
call fcn.00496da0
mov byte [esp + 0x94], bl
call fcn.00499d50
mov eax, dword [0x6142fc]
add esp, 8
push eax
lea ecx, [esp + 0x20]
call fcn.00496da0
push edi
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str._url
mov byte [esp + 0x9c], 3
call fcn.00496da0
lea ecx, [esp + 0x28]
call fcn.00497740
cmp eax, 0xffffffff
je 0x49a187
push 0xffffffffffffffff
add eax, 5
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00497b10
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x90], 4
call fcn.00497360
lea ecx, [esp + 0x24]
mov byte [esp + 0x8c], 3
call fcn.00497320
push edi
push edi
push 0x20
lea ecx, [esp + 0x28]
call fcn.00496ee0
cmp eax, 0xffffffff
je 0x49a14b
push eax
push edi
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x28]
call fcn.00497b10
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x90], 5
call fcn.00497360
lea ecx, [esp + 0x24]
mov byte [esp + 0x8c], 3
call fcn.00497320
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.004971d0
mov edx, dword [str.downloadurl]
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x98], 6
call fcn.00496da0
mov byte [esp + 0x94], 3
call fcn.00499d50
add esp, 8
push edi
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.__stringtest
call fcn.00496da0
lea ecx, [esp + 0x28]
call fcn.00497740
cmp eax, 0xffffffff
je 0x49a1e2
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x5b2e20
call fcn.00496da0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.stringtest
mov byte [esp + 0x98], 7
call fcn.00496da0
mov byte [esp + 0x94], 3
call fcn.00499d50
add esp, 8
push ecx
mov ebp, esp
mov dword [esp + 0x34], esp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5a8554
call fcn.00496da0
mov eax, dword [str.utf8mode]
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x9c], 8
call fcn.00496da0
push ebp
mov byte [esp + 0x9c], 3
call fcn.00499f00
add esp, 8
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.utf8modeinit
mov byte [esp + 0x98], 9
call fcn.00496da0
mov byte [esp + 0x94], 3
call fcn.00499d50
mov ecx, dword [esp + 0x9c]
add esp, 8
mov dword [esi], ecx
call fcn.0055ee92
lea ebp, [eax*8]
call fcn.0055ee92
mov esi, eax
imul esi, ebp
call fcn.0055ee92
sar eax, 3
add eax, esi
mov dword [esp + edi*4 + 0x38], eax
add edi, 1
cmp edi, 4
jl 0x49a256
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi]
push 4
lea edx, [esp + 0x3c]
push edx
add ecx, 0x8c4
call fcn.004ae8b0
push 0x5c
call fcn.0055d3fe
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x8c], 0xa
je 0x49a2bf
push 0
mov ecx, eax
call fcn.004e3aa0
jmp 0x49a2c1
xor eax, eax
push eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x898]
mov byte [esp + 0x90], 3
call fcn.004a12d0
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push ecx
call fcn.004dfce0
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5b361c
mov byte [esp + 0x98], 0xb
call fcn.00496da0
mov byte [esp + 0x94], 3
call fcn.00499d50
add esp, 8
lea ecx, [esp + 0x48]
call fcn.004ac1c0
push str.::assets_settings.xml
lea ecx, [esp + 0x4c]
mov byte [esp + 0x90], 0xc
call fcn.004ab580
push str.settings
lea ecx, [esp + 0x4c]
call fcn.004ab820
mov esi, eax
test esi, esi
je 0x49a3d8
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0
call fcn.00496d90
mov ecx, esi
mov byte [esp + 0x8c], 0xd
call fcn.004ab8b0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.004ab8c0
test al, al
je 0x49a3c7
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.004aa660
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0x98], 0xe
call fcn.004971d0
mov byte [esp + 0x94], 0xd
call fcn.00499d50
add esp, 8
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004ab8c0
test al, al
jne 0x49a378
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 0xc
call fcn.00497320
mov edx, dword [edi]
push ecx
add edx, 0x551
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00496da0
mov eax, dword [edi]
push ecx
add eax, 0x44d
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x98], 0xf
call fcn.00496da0
mov edx, dword [edi]
push ecx
add edx, 0x349
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x9c], 0x10
call fcn.00496da0
mov byte [esp + 0x98], 0xc
call fcn.00498660
mov eax, dword [str.firstpeek]
add esp, 8
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00496da0
call fcn.00401000
add esp, 4
test al, al
je 0x49a45a
mov byte [0x6142b8], 1
call fcn.004bb370
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.strings.xml
call fcn.00496da0
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x8a4]
call fcn.004aa5c0
test al, al
je 0x49a491
push 1
mov ecx, edi
call fcn.004988d0
mov ecx, eax
call fcn.004a0990
lea ecx, [esp + 0x18]
call fcn.00496d90
mov byte [esp + 0x8c], 0x11
mov esi, 0x13
push 0
lea edx, [esp + 0x1c]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.user:
call fcn.00496da0
call fcn.004ba280
add esp, 0xc
test al, al
je 0x49a5b3
push 0x5b3698
lea ecx, [esp + 0x28]
call fcn.00496da0
push 6
push 0
lea eax, [esp + 0x38]
or ebx, 1
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x98], 0x12
mov dword [esp + 0x2c], ebx
call fcn.00497b10
lea ecx, [esp + 0x24]
push ecx
or ebx, 2
mov ecx, eax
mov dword [esp + 0x90], esi
mov dword [esp + 0x24], ebx
call fcn.004972e0
test al, al
je 0x49a544
push 0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str..xml
call fcn.00496da0
lea ecx, [esp + 0x24]
call fcn.00497740
cmp eax, 0xffffffff
mov byte [esp + 0x17], 1
jne 0x49a549
mov byte [esp + 0x17], 0
test bl, 2
mov dword [esp + 0x8c], 0x12
je 0x49a569
and ebx, 0xfffffffd
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebx
call fcn.00497320
test bl, 1
mov dword [esp + 0x8c], 0x11
je 0x49a585
lea ecx, [esp + 0x24]
and ebx, 0xfffffffe
call fcn.00497320
cmp byte [esp + 0x17], 0
je 0x49a4a7
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.004971d0
mov eax, dword [edi]
mov ecx, dword [eax + 0x8a4]
call fcn.004aa3f0
jmp 0x49a4a7
push 0x5a8554
lea ecx, [esp + 0x1c]
call fcn.00497d30
mov esi, 0x15
push 0
lea ecx, [esp + 0x1c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.common:
call fcn.00496da0
call fcn.004ba280
add esp, 0xc
test al, al
je 0x49a6d2
push 0x5b3698
lea ecx, [esp + 0x28]
call fcn.00496da0
push 6
push 0
lea edx, [esp + 0x38]
or ebx, 4
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x98], 0x14
mov dword [esp + 0x2c], ebx
call fcn.00497b10
lea ecx, [esp + 0x24]
push ecx
or ebx, 8
mov ecx, eax
mov dword [esp + 0x90], esi
mov dword [esp + 0x24], ebx
call fcn.004972e0
test al, al
je 0x49a663
push 0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str..xml
call fcn.00496da0
lea ecx, [esp + 0x24]
call fcn.00497740
cmp eax, 0xffffffff
mov byte [esp + 0x17], 1
jne 0x49a668
mov byte [esp + 0x17], 0
test bl, 8
mov dword [esp + 0x8c], 0x14
je 0x49a688
and ebx, 0xfffffff7
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebx
call fcn.00497320
test bl, 4
mov dword [esp + 0x8c], 0x11
je 0x49a6a4
lea ecx, [esp + 0x24]
and ebx, 0xfffffffb
call fcn.00497320
cmp byte [esp + 0x17], 0
je 0x49a5c6
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.004971d0
mov eax, dword [edi]
mov ecx, dword [eax + 0x8a4]
call fcn.004aa3f0
jmp 0x49a5c6
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [edi]
call fcn.00498600
mov ecx, dword [esp + 0x94]
mov bl, 0x16
mov byte [esp + 0x8c], bl
call fcn.004dae00
mov ecx, dword [edi]
lea edx, [esp + 0x30]
push edx
call fcn.00498630
mov ecx, eax
mov byte [esp + 0x8c], 0x17
call fcn.00496ed0
push eax
lea ecx, [esp + 0x2c]
call fcn.00496ed0
push eax
push str._s__version__s.
call fcn.004dfae0
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x8c], bl
call fcn.00497320
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.004971d0
mov edx, dword [0x60370c]
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x98], 0x18
call fcn.00496da0
mov byte [esp + 0x94], bl
call fcn.00499d50
mov ecx, dword [edi]
add esp, 4
mov eax, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00498630
mov edx, dword [0x603714]
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x98], 0x19
call fcn.00496da0
mov byte [esp + 0x94], bl
call fcn.00499d50
add esp, 8
call fcn.004df140
call fcn.004a4670
lea ecx, [esp + 0x28]
mov byte [esp + 0x8c], 0x11
call fcn.00497320
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], 0xc
call fcn.00497320
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 3
call fcn.004abf30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 0
call fcn.00497320
mov eax, edi
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 4