Function at 0x5a3140
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6acbb9
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x73c280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xe0], eax
xor ecx, ecx
mov edi, bind
cmp ecx, dword [eax + 0x30]
sbb ecx, ecx
add eax, 8
and ecx, 0x18
add ecx, eax
mov eax, edi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 0xc
jb 0x5a3c31
cmp dword [ecx + 0x14], 0xf
mov eax, ecx
jbe 0x5a31a3
mov eax, dword [ecx]
push 0xc
push str.Setting.txt
push edx
push eax
push ecx
push dword [ebp - 0xe0]
lea ecx, [ebp - 0x70]
call fcn.004edab0
push 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
call fcn.005c8dfe
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0x5c], 0xf
lea ecx, [ebp - 0xdc]
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
cmova eax, dword [ebp - 0x70]
push ecx
push eax
call fcn.00523700
add esp, 0xc
test al, al
jne 0x5a332e
movaps xmm0, xmmword [0x6d80b0]
lea eax, [ebp - 0x1e8]
movups xmmword [ebp - 0x1e8], xmm0
lea esi, [ebp - 0x70]
cmp dword [ebp - 0x5c], 0xf
movaps xmm0, xmmword [0x6d5610]
lea ecx, [ebp - 0xcc]
movups xmmword [ebp - 0x1d8], xmm0
cmova esi, dword [ebp - 0x70]
movaps xmm0, xmmword [0x6c4580]
movups xmmword [ebp - 0x1c8], xmm0
push eax
movaps xmm0, xmmword [0x6ba260]
movups xmmword [ebp - 0x1b8], xmm0
movaps xmm0, xmmword [0x6d8060]
movups xmmword [ebp - 0x1a8], xmm0
movaps xmm0, xmmword [0x6ba5d0]
movups xmmword [ebp - 0x198], xmm0
movaps xmm0, xmmword [0x6ba2f0]
movups xmmword [ebp - 0x188], xmm0
movaps xmm0, xmmword [0x6b7ee0]
movups xmmword [ebp - 0x178], xmm0
movaps xmm0, xmmword [0x6b3ae0]
movups xmmword [ebp - 0x168], xmm0
movaps xmm0, xmmword [0x6bf130]
movups xmmword [ebp - 0x158], xmm0
movaps xmm0, xmmword [0x6d8020]
movups xmmword [ebp - 0x148], xmm0
movaps xmm0, xmmword [0x6d8230]
movups xmmword [ebp - 0x138], xmm0
movaps xmm0, xmmword [0x6d8290]
movups xmmword [ebp - 0x128], xmm0
movaps xmm0, xmmword [0x6d82f0]
movups xmmword [ebp - 0x118], xmm0
movaps xmm0, xmmword [0x6d81e0]
movups xmmword [ebp - 0x108], xmm0
movaps xmm0, xmmword [0x6d7f90]
movups xmmword [ebp - 0xf8], xmm0
call fcn.005a05a0
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.00505750
mov byte [ebp - 0xd1], 0
jmp 0x5a3bb4
mov ax, word [0x6d7f1c]
lea ecx, [ebp - 0xdc]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0xa
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x28]
movq xmm0, qword [str.textureset]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x14], 0xf
push eax
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x1e], 0
call fcn.0044c990
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0xdc]
cmp byte [eax + 0xd], 0
jne 0x5a3397
add eax, 0x10
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044c740
add esp, 8
test al, al
mov eax, dword [ebp - 0x44]
je 0x5a3399
mov eax, esi
cmp esi, eax
jne 0x5a34d2
movaps xmm0, xmmword [0x6d80b0]
lea eax, [ebp - 0x200]
movups xmmword [ebp - 0x200], xmm0
lea esi, [ebp - 0x70]
cmp dword [ebp - 0x5c], 0xf
movaps xmm0, xmmword [0x6d5610]
lea ecx, [ebp - 0xd0]
movups xmmword [ebp - 0x1f0], xmm0
cmova esi, dword [ebp - 0x70]
movaps xmm0, xmmword [0x6c4580]
movups xmmword [ebp - 0x1e0], xmm0
push eax
movaps xmm0, xmmword [0x6ba260]
movups xmmword [ebp - 0x1d0], xmm0
mov dword [ebp - 0xf0], 0x113
movaps xmm0, xmmword [0x6d8060]
movups xmmword [ebp - 0x1c0], xmm0
mov dword [ebp - 0xec], 0
movaps xmm0, xmmword [0x6ba5d0]
movups xmmword [ebp - 0x1b0], xmm0
movaps xmm0, xmmword [0x6ba2f0]
movaps xmm1, xmmword [0x6baf00]
movups xmmword [ebp - 0x1a0], xmm0
movaps xmm0, xmmword [0x6b7ee0]
movups xmmword [ebp - 0x190], xmm0
movaps xmm0, xmmword [0x6b3ae0]
movups xmmword [ebp - 0x180], xmm0
movaps xmm0, xmmword [0x6bf130]
movups xmmword [ebp - 0x170], xmm0
movaps xmm0, xmmword [0x6bada0]
movups xmmword [ebp - 0x150], xmm0
movaps xmm0, xmmword [0x6d83a0]
movups xmmword [ebp - 0x140], xmm0
movaps xmm0, xmmword [0x6cbd30]
movups xmmword [ebp - 0x130], xmm0
movaps xmm0, xmmword [0x6d8420]
movups xmmword [ebp - 0x120], xmm0
movaps xmm0, xmmword [0x6cd730]
movups xmmword [ebp - 0x160], xmm1
movups xmmword [ebp - 0x110], xmm1
movups xmmword [ebp - 0x100], xmm0
call fcn.004d1440
lea eax, [ebp - 0xd0]
push esi
push eax
call fcn.00505750
mov byte [ebp - 0xd1], 0
jmp 0x5a3bb4
mov eax, dword [0x6d7f28]
lea ecx, [ebp - 0xdc]
movq xmm0, qword [str.terrainvisible]
mov dword [ebp - 0x20], eax
mov ax, word [0x6d7f2c]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
mov word [ebp - 0x1a], 0
push eax
mov dword [ebp - 0x18], 0xe
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
call fcn.0044c990
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0xd], 0
jne 0x5a3538
add eax, 0x10
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044c740
add esp, 8
test al, al
mov eax, dword [ebp - 0x44]
je 0x5a353a
mov eax, esi
cmp esi, eax
je 0x5a3692
mov eax, dword [0x6d7f28]
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], eax
movq xmm0, qword [str.terrainvisible]
mov ax, word [0x6d7f2c]
mov dword [ebp - 0x30], 0xe
mov dword [ebp - 0x2c], 0xf
movq qword [ebp - 0x40], xmm0
mov word [ebp - 0x34], ax
mov byte [ebp - 0x32], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xdc]
call fcn.0044c990
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0xd], 0
jne 0x5a35b6
add eax, 0x10
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044c740
add esp, 8
test al, al
jne 0x5a35b6
mov eax, dword [ebp - 0x44]
jmp 0x5a3658
cmp dword [ebp - 0xd8], 0x4ec4ec4
je 0x5a3c36
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xe8], eax
push 0x34
mov byte [ebp - 4], 3
mov dword [ebp - 0xe4], 0
call fcn.005c8dfe
xorps xmm0, xmm0
lea ecx, [ebp - 0xdc]
add esp, 4
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
movups xmm0, xmmword [ebp - 0x40]
push eax
push dword [ebp - 0x48]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x30]
push dword [ebp - 0x4c]
movq qword [eax + 0x20], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.00446c80
mov eax, dword [eax + 0x28]
cmp dword [eax + 0x14], 0xf
jbe 0x5a3663
mov eax, dword [eax]
push eax
call fcn.006581f8
add esp, 4
or eax, edx
je 0x5a3674
mov cl, 1
jmp 0x5a3676
xor cl, cl
mov eax, dword [ebp - 0xe0]
mov byte [eax + 0x14cc], cl
lea ecx, [ebp - 0x40]
call fcn.0043f6b0
mov esi, dword [ebp - 0xdc]
jmp 0x5a369f
mov eax, dword [ebp - 0xe0]
mov byte [eax + 0x14cc], 1
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov ax, word [0x6d7f1c]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0xa
movq xmm0, qword [str.textureset]
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
mov word [ebp - 0x20], ax
mov byte [ebp - 0x1e], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xdc]
call fcn.0044c990
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0xd], 0
jne 0x5a3721
add eax, 0x10
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044c740
add esp, 8
test al, al
jne 0x5a3721
mov esi, dword [ebp - 0x44]
jmp 0x5a37c5
cmp dword [ebp - 0xd8], 0x4ec4ec4
je 0x5a3c3b
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xe8], eax
push 0x34
mov byte [ebp - 4], 6
mov dword [ebp - 0xe4], 0
call fcn.005c8dfe
xorps xmm0, xmm0
lea ecx, [ebp - 0xdc]
add esp, 4
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
movups xmm0, xmmword [ebp - 0x28]
push eax
push dword [ebp - 0x48]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x18]
push dword [ebp - 0x4c]
movq qword [eax + 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.00446c80
mov esi, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0043f6b0
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x2c]
je 0x5a37e2
push eax
lea ecx, [ebp - 0x40]
call fcn.004d1910
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0x88]
mov dword [eax + 0x928], 0x39a3d70a
lea eax, [ebp - 0x40]
push eax
call fcn.0043ee60
push 0
push str.textureset
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 7
call fcn.005a47c0
test eax, eax
je 0x5a388b
mov ecx, dword [ebp - 0x30]
sub edi, ecx
cmp byte [ebp + 8], 0
je 0x5a386c
cmp edi, 0x15
jb 0x5a3c40
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push ecx
cmova eax, dword [ebp - 0x40]
push eax
push 0x15
push str.textureset_snow_snow_
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xe0]
lea ecx, [ebp - 0x28]
call fcn.004edab0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x88]
call fcn.00513572
lea ecx, [ebp - 0x28]
jmp 0x5a39de
cmp edi, 0xb
jb 0x5a3c40
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push ecx
cmova eax, dword [ebp - 0x40]
push eax
push 0xb
push str.textureset_
jmp 0x5a3843
cmp byte [ebp + 8], 0
je 0x5a39e3
push 0xffffffffffffffff
push 0xb
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x88]
call fcn.005a0400
mov esi, eax
mov ecx, dword [esi + 0x14]
mov eax, ecx
mov edx, dword [esi + 0x10]
sub eax, edx
mov byte [ebp - 4], 8
cmp eax, 0x15
jb 0x5a3951
lea eax, [edx + 0x15]
mov edi, esi
mov dword [esi + 0x10], eax
cmp ecx, 0xf
jbe 0x5a38d0
mov edi, dword [esi]
cmp edi, 0x6d7f79
jae 0x5a3905
lea eax, [edi + edx]
cmp eax, str.textureset_snow_snow_
jb 0x5a3905
cmp edi, str.textureset_snow_snow_
ja 0x5a38f6
mov dword [ebp - 0xe4], 0
jmp 0x5a390f
mov eax, edi
sub eax, str.textureset_snow_snow_
mov dword [ebp - 0xe4], eax
jmp 0x5a390f
mov dword [ebp - 0xe4], 0x15
lea eax, [edx + 1]
push eax
lea ecx, [edi + 0x15]
push edi
push ecx
call fcn.00643a30
push dword [ebp - 0xe4]
push str.textureset_snow_snow_
push edi
call fcn.00643a30
mov edx, dword [ebp - 0xe4]
mov eax, 0x15
sub eax, edx
push eax
lea eax, [edx + 0x6d7f79]
lea ecx, [edi + edx]
push eax
push ecx
call fcn.00643a30
add esp, 0x24
jmp 0x5a3972
push 0x15
push str.textureset_snow_snow_
push 0
mov byte [ebp - 0xe4], 0
mov ecx, esi
push dword [ebp - 0xe4]
push 0x15
call fcn.004a6250
mov esi, eax
movups xmm0, xmmword [esi]
lea eax, [ebp - 0x28]
push eax
movups xmmword [ebp - 0x28], xmm0
lea ecx, [ebp - 0x88]
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.00513572
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x5a39d7
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5a39cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a3c45
push ecx
push edx
call fcn.005c8a85
add esp, 8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.0043f6b0
mov eax, dword [ebp - 0xe0]
cmp dword [ebp - 0x74], 0xf
push ecx
movss xmm0, dword [eax + 0x928]
lea esi, [eax + 0x284]
lea eax, [ebp - 0x88]
movss dword [esp], xmm0
cmova eax, dword [ebp - 0x88]
mov ecx, esi
push eax
call fcn.005bc680
test al, al
jne 0x5a3b68
movaps xmm0, xmmword [0x6d80b0]
lea edi, [ebp - 0x88]
movups xmmword [ebp - 0x200], xmm0
lea eax, [ebp - 0x200]
cmp dword [ebp - 0x74], 0xf
movaps xmm0, xmmword [0x6d5610]
lea esi, [ebp - 0x70]
movups xmmword [ebp - 0x1f0], xmm0
lea ecx, [ebp - 0xd0]
cmova edi, dword [ebp - 0x88]
movaps xmm0, xmmword [0x6c4580]
movups xmmword [ebp - 0x1e0], xmm0
cmp dword [ebp - 0x5c], 0xf
movaps xmm0, xmmword [0x6ba260]
movups xmmword [ebp - 0x1d0], xmm0
cmova esi, dword [ebp - 0x70]
movaps xmm0, xmmword [0x6d8060]
movups xmmword [ebp - 0x1c0], xmm0
push eax
movaps xmm0, xmmword [0x6ba5d0]
movups xmmword [ebp - 0x1b0], xmm0
mov dword [ebp - 0xf0], 0x1aa
movaps xmm0, xmmword [0x6ba2f0]
movups xmmword [ebp - 0x1a0], xmm0
mov dword [ebp - 0xec], 0
movaps xmm0, xmmword [0x6b7ee0]
movups xmmword [ebp - 0x190], xmm0
movaps xmm0, xmmword [0x6b3ae0]
movups xmmword [ebp - 0x180], xmm0
movaps xmm0, xmmword [0x6bf130]
movups xmmword [ebp - 0x170], xmm0
movaps xmm0, xmmword [0x6d8020]
movups xmmword [ebp - 0x160], xmm0
movaps xmm0, xmmword [0x6d7fb0]
movups xmmword [ebp - 0x150], xmm0
movaps xmm0, xmmword [0x6d8300]
movups xmmword [ebp - 0x140], xmm0
movaps xmm0, xmmword [0x6d7fc0]
movups xmmword [ebp - 0x130], xmm0
movaps xmm0, xmmword [0x6d8440]
movups xmmword [ebp - 0x120], xmm0
movaps xmm0, xmmword [0x6ba0d0]
movups xmmword [ebp - 0x110], xmm0
movaps xmm0, xmmword [0x6b33b0]
movups xmmword [ebp - 0x100], xmm0
call fcn.004d1440
push edi
lea eax, [ebp - 0xd0]
push esi
push eax
call fcn.00505750
add esp, 0xc
mov byte [ebp - 0xd1], 0
jmp 0x5a3b78
push esi
call fcn.005bf670
add esp, 4
mov byte [ebp - 0xd1], 1
lea ecx, [ebp - 0x88]
call fcn.0043f6b0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x5a3bb7
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5a3bad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a3c4a
push ecx
push edx
call fcn.005c8a85
add esp, 8
mov eax, dword [ebp - 0xdc]
push dword [eax + 4]
lea eax, [ebp - 0xdc]
push eax
mov ecx, eax
call fcn.00499440
push 0x34
push dword [ebp - 0xdc]
call fcn.005c8a85
mov ecx, dword [ebp - 0x5c]
add esp, 8
cmp ecx, 0xf
jbe 0x5a3c0e
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5a3c04
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a3c4a
push ecx
push edx
call fcn.005c8a85
add esp, 8
mov al, byte [ebp - 0xd1]
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.005c8a4d
mov esp, ebp
pop ebp
ret 4
call fcn.00444010
call fcn.00446e70
call fcn.00446e70
call fcn.00444010
call fcn.0064e36a
call fcn.0064e36a
int3