Function at 0x417040
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4a9098]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x14], esi
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], edi
call fcn.00416bd0
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
mov ecx, ebx
push esi
call fcn.004152b0
add ebx, 0x3f4
mov ecx, esi
add ecx, 0x3f4
mov edx, edi
mov dword [ebp - 0x14], ecx
lea eax, [ebx + 0x98]
mov dword [ebp - 0x30], eax
lea esi, [edx + 0x30]
lea eax, [ebx + 0x78]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], eax
lea edi, [ecx + 0x30]
lea eax, [ebx + 0x60]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x48]
mov dword [ebp - 0x20], eax
lea eax, [ebx + 0x30]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebp - 0x18], eax
push edx
call fcn.0041a8e0
test al, al
je 0x417286
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.004067e0
cmp ebx, eax
je 0x417118
call fcn.004067e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x41710d
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.00406aa0
lea ecx, [edi - 0x18]
call fcn.004067e0
mov esi, dword [ebp - 0x18]
cmp esi, eax
je 0x417141
call fcn.004067e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x417136
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00406aa0
mov ecx, edi
call fcn.004067e0
mov esi, dword [ebp - 0x1c]
cmp esi, eax
je 0x417169
call fcn.004067e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x41715e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00406aa0
lea ecx, [edi + 0x18]
call fcn.004067e0
mov esi, dword [ebp - 0x20]
cmp esi, eax
je 0x417192
call fcn.004067e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x417187
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00406aa0
lea ecx, [edi + 0x30]
call fcn.004067e0
mov esi, dword [ebp - 0x24]
cmp esi, eax
je 0x4171bb
call fcn.004067e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4171b0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00406aa0
lea ecx, [edi + 0x48]
call fcn.004067e0
mov esi, dword [ebp - 0x28]
cmp esi, eax
je 0x4171e4
call fcn.004067e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4171d9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00406aa0
mov al, byte [edi + 0x60]
lea esi, [edi + 0x68]
mov byte [ebx + 0x90], al
mov ecx, 0xd7
mov al, byte [edi + 0x61]
add dword [ebp - 0x18], 0x3f4
add dword [ebp - 0x1c], 0x3f4
add dword [ebp - 0x20], 0x3f4
add dword [ebp - 0x24], 0x3f4
add dword [ebp - 0x28], 0x3f4
mov byte [ebx + 0x91], al
mov al, byte [edi + 0x62]
mov byte [ebx + 0x92], al
mov al, byte [edi + 0x63]
mov byte [ebx + 0x93], al
mov al, byte [edi + 0x64]
mov byte [ebx + 0x94], al
mov al, byte [edi + 0x65]
mov byte [ebx + 0x95], al
add ebx, 0x3f4
mov eax, dword [ebp - 0x30]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
add eax, 0x3f4
mov edi, dword [ebp - 0x40]
add ecx, 0x3f4
add edi, 0x3f4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x40], edi
cmp ecx, dword [ebp - 0x38]
je 0x41741f
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
jmp 0x4170e2
mov edi, dword [ebp - 0x2c]
mov ecx, edi
call fcn.004067e0
cmp ebx, eax
je 0x4172ae
call fcn.004067e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4172a3
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.00406aa0
lea ecx, [esi - 0x18]
call fcn.004067e0
mov edi, dword [ebp - 0x18]
cmp edi, eax
je 0x4172d7
call fcn.004067e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4172cc
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.00406aa0
mov ecx, esi
call fcn.004067e0
mov edi, dword [ebp - 0x1c]
cmp edi, eax
je 0x4172ff
call fcn.004067e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4172f4
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.00406aa0
lea ecx, [esi + 0x18]
call fcn.004067e0
mov edi, dword [ebp - 0x20]
cmp edi, eax
je 0x417328
call fcn.004067e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x41731d
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.00406aa0
lea ecx, [esi + 0x30]
call fcn.004067e0
mov edi, dword [ebp - 0x24]
cmp edi, eax
je 0x417351
call fcn.004067e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x417346
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.00406aa0
lea ecx, [esi + 0x48]
call fcn.004067e0
mov edi, dword [ebp - 0x28]
cmp edi, eax
je 0x41737a
call fcn.004067e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x41736f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.00406aa0
mov al, byte [esi + 0x60]
mov ecx, 0xd7
mov edx, dword [ebp - 0x2c]
mov byte [ebx + 0x90], al
add edx, 0x3f4
mov al, byte [esi + 0x61]
add dword [ebp - 0x18], 0x3f4
add dword [ebp - 0x1c], 0x3f4
add dword [ebp - 0x20], 0x3f4
add dword [ebp - 0x24], 0x3f4
add dword [ebp - 0x28], 0x3f4
mov byte [ebx + 0x91], al
mov al, byte [esi + 0x62]
mov byte [ebx + 0x92], al
mov al, byte [esi + 0x63]
mov byte [ebx + 0x93], al
mov al, byte [esi + 0x64]
mov byte [ebx + 0x94], al
mov al, byte [esi + 0x65]
add esi, 0x68
mov byte [ebx + 0x95], al
add ebx, 0x3f4
mov eax, dword [ebp - 0x30]
mov edi, eax
add eax, 0x3f4
mov dword [ebp - 0x2c], edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
add esi, 0x3f4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
add eax, 0xfffffc0c
mov dword [ebp - 0x3c], esi
cmp edx, eax
je 0x417437
mov edi, dword [ebp - 0x40]
jmp 0x4170e2
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 0x38], 0
push dword [ebp - 0x38]
push ebx
call fcn.00417a00
add esp, 8
jmp 0x417452
mov edx, dword [ebp - 0x38]
push eax
mov byte [ebp - 0x34], 0
push dword [ebp - 0x34]
push ebx
call fcn.00417a00
add esp, 8
mov ecx, eax
call fcn.004152b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004165c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret