Function at 0x402bf0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x40e7c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov edx, dword [esp + 0x28]
push ebx
xor eax, eax
push ebp
push esi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x30]
cmp esi, eax
lea ebx, [ecx + 0x18]
push edi
mov dword [edx], eax
mov dword [esp + 0x10], ebx
je 0x402c39
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c30
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.00402680
push esi
push 0x410418
call fcn.004062a0
add esp, 8
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x402eac
mov ebp, dword [sym.imp.MSVCR71.dll__mbsstr]
push str.__request_
push eax
call ebp
add esp, 8
test eax, eax
je 0x402eac
sub eax, dword [ebx]
mov esi, eax
js 0x402eac
lea eax, [esi + 0xb]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebx
call fcn.00402430
add esi, 0xa
push esi
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
mov dword [esp + 0x30], 0
call fcn.00402730
mov ecx, dword [eax]
mov esi, dword [ebx]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
mov byte [esp + 0x28], 1
je 0x402d03
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x402cf7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x402cf7
push eax
call fcn.00402150
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x402cea
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add ebx, 0x10
mov dword [eax], ebx
mov ebx, eax
jmp 0x402d03
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.00402510
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x34]
jmp 0x402d30
mov ebx, dword [esp + 0x10]
mov eax, dword [edi - 0xc]
test eax, eax
jl 0x402e81
push str._request_
push edi
call ebp
add esp, 8
test eax, eax
je 0x402e81
sub eax, edi
mov ebx, eax
js 0x402e7d
mov eax, dword [edi - 0xc]
lea esi, [ebx + 1]
test esi, esi
jl 0x402ed3
cmp esi, eax
jg 0x402ed3
lea eax, [esi + edi]
push str._request_
push eax
call ebp
add esp, 8
test eax, eax
je 0x402ed3
sub eax, edi
mov dword [esp + 0x1c], eax
js 0x402ed3
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00402730
mov eax, dword [eax]
lea esi, [eax - 0x10]
lea ebx, [edi - 0x10]
cmp esi, ebx
mov byte [esp + 0x28], 2
je 0x402e51
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jl 0x402e3f
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x402e3f
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x402de5
cmp eax, dword [esi]
jne 0x402de5
mov ebp, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x402e19
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebp, eax
test ebp, ebp
je 0x402f33
mov edx, dword [esi + 4]
mov dword [ebp + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402e30
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
lea edi, [ebp + 0x10]
mov ebp, dword [sym.imp.MSVCR71.dll__mbsstr]
mov dword [esp + 0x34], edi
jmp 0x402e51
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00402510
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x402d2c
mov ebx, dword [esp + 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402c50
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
jmp 0x402c50
mov esi, dword [esp + 0x30]
push 0x410480
mov ecx, esi
call fcn.00402b40
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x402f00
push str.__request_
push eax
call ebp
add esp, 8
test eax, eax
je 0x402f00
sub eax, dword [esi]
cmp eax, 0xffffffff
jle 0x402f00
mov eax, dword [esp + 0x38]
mov dword [eax], 1
mov esi, dword [esp + 0x30]
push ebx
push esi
lea ecx, [esp + 0x3c]
call fcn.00402730
add edi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ebc
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
jmp 0x402ebc
call fcn.00401f50
int3