Function at 0x435140
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x473d58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x154]
push esi
sub eax, 0x10
push edi
push eax
call fcn.004026d0
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18c]
test eax, eax
mov dword [esp + 0x30], 0
je 0x435255
mov eax, dword [esp + 0x3c]
cmp dword [eax], 0
je 0x435255
mov eax, dword [ebp + 0x198]
test eax, eax
push 0
push 0
jne 0x4351bf
mov ecx, dword [ebp + 0x1b8]
push 0x186
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x435255
mov edx, dword [ebp + 0x1b8]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x18b
push edx
mov esi, 1
call edi
cmp eax, esi
jle 0x43521e
lea ebx, [ebp + 0x19c]
lea eax, [esp + 0x14]
push eax
push esi
mov ecx, ebx
call fcn.0046a298
mov eax, dword [ebp + 0x154]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0044a6f3
add esp, 8
test eax, eax
je 0x43521e
mov edx, dword [ebp + 0x1b8]
push 0
push 0
push 0x18b
push edx
inc esi
call edi
cmp esi, eax
jl 0x4351e2
mov eax, dword [ebp + 0x1b8]
push 0
push 0
push 0x18b
push eax
call edi
cmp esi, eax
push 0
jge 0x435245
mov ecx, dword [ebp + 0x1b8]
push esi
push 0x186
push ecx
jmp 0x435253
mov edx, dword [ebp + 0x1b8]
push 0
push 0x186
push edx
call edi
mov eax, dword [0x48f0f4]
xor esi, esi
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x435295
mov edi, 0x48f0fc
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
push edi
push eax
call fcn.0044a6f3
add esp, 8
test eax, eax
je 0x435291
mov eax, dword [0x48f0f4]
inc esi
add edi, 0x48
cmp esi, eax
jl 0x435270
jmp 0x435295
mov dword [esp + 0x1c], esi
call fcn.0045c368
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0x1b8]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x188
push ecx
mov byte [esp + 0x44], 1
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
lea ecx, [ebp + 0x19c]
call fcn.0046a298
call fcn.0045c368
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push 0x47b750
push ecx
mov byte [esp + 0x3c], 2
call fcn.00403c50
mov edx, dword [esp + 0x44]
mov eax, dword [edx]
add esp, 0xc
test eax, eax
je 0x435324
mov eax, dword [esp + 0x3c]
push 0
push 0x24
push eax
call fcn.004646be
cmp eax, 6
jne 0x4354e0
push 1
mov ecx, ebp
call fcn.0045dde7
mov edx, dword [ebp + 0x100]
mov eax, dword [edx - 0xc]
test eax, eax
lea ecx, [ebp + 0x100]
jne 0x43534c
push 2
push 0x4775d0
call fcn.00403ad0
push 1
lea eax, [esp + 0x3c]
lea esi, [ebp + 0x118]
push eax
mov ecx, esi
call fcn.0040b5e0
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
cmp eax, 1
jne 0x435381
test eax, eax
jge 0x435378
push 0x80070057
call fcn.00401210
cmp byte [ecx], 0x5c
jne 0x435381
xor bl, bl
jmp 0x435383
mov bl, 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4353a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x4353b3
push 1
push 0x477288
mov ecx, esi
call fcn.004059c0
mov eax, dword [ebp + 0x1b8]
push 0
push 0
push 0x188
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x435477
push ecx
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.0045c368
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov ecx, esi
call fcn.00403010
mov esi, dword [ebp + 0x154]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
sub esi, 0x10
mov byte [esp + 0x38], 4
mov dword [esp + 0x2c], esp
mov ebx, esp
call dword [eax + 0x10]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea edx, [esi + 0xc]
jl 0x435428
cmp eax, dword [esi]
jne 0x435428
mov eax, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x43545b
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x43543d
call fcn.00406710
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp + 0xf0]
push eax
lea ecx, [ebp + 0x15c]
mov byte [esp + 0x3c], 2
call fcn.004263c0
mov ecx, dword [ebp + 0x1b8]
push 0
push 0
push 0x188
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x4354a3
lea edx, [ebp + 0xf0]
push edx
lea ecx, [ebp + 0x84]
call fcn.00403de0
cmp dword [esp + 0x1c], 8
jge 0x4354b6
mov dword [ebp + 0x194], 0
jmp 0x4354c0
mov dword [ebp + 0x194], 1
mov eax, dword [ebp + 0x154]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x43559c
mov dword [ebp + 0x194], 0
jmp 0x43559c
mov ecx, dword [0x494764]
mov eax, dword [ebp + 0x154]
push ecx
push eax
call fcn.0044a6f3
add esp, 8
test eax, eax
jne 0x435511
lea edx, [ebp + 0x84]
push edx
lea ecx, [ebp + 0xf0]
call fcn.00403de0
jmp 0x435595
mov esi, dword [esp + 0x14]
lea eax, [ebp + 0x15c]
push eax
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
add esi, 0xfffffff0
mov dword [esp + 0x40], esp
mov ebx, esp
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x435549
cmp eax, dword [esi]
jne 0x435549
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x43557c
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x43555e
call fcn.00406710
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
lea ecx, [ebp + 0xf0]
mov dword [ebx], eax
call fcn.00411ef0
push 0
mov ecx, ebp
call fcn.0045dde7
mov ecx, ebp
call fcn.00431a40
mov ecx, ebp
mov dword [ebp + 0x18c], 0
mov dword [ebp + 0x190], 1
call fcn.00431a40
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4355da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4355fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435623
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 8