Function at 0x40e760
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46294f
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x488480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0
call fcn.0040ea80
mov dword [edi], vtable.LRChooseDialog.0
mov dword [edi + 0x30], vtable.LRChooseDialog.1.0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0xa
mov eax, dword [ebp + 0x10]
push edi
push ecx
add eax, 0xfffffff0
mov byte [ebp - 4], 2
mov esi, esp
push eax
mov dword [ebp + 8], esi
call fcn.00405bf0
add esp, 4
lea ecx, [edi + 0xa8]
add eax, 0x10
mov dword [esi], eax
call fcn.00419460
push 1
lea ecx, [edi + 0x1f0]
mov byte [ebp - 4], 3
call fcn.00415ee0
push dword [ebp + 0x24]
lea ecx, [edi + 0x280]
mov byte [ebp - 4], 4
call fcn.0040e420
push 0xd
push ecx
mov ecx, esp
mov byte [ebp - 4], 5
push 0x46a248
call fcn.004047f0
lea ecx, [edi + 0x3a0]
call fcn.00413dd0
push 0x1b
push ecx
mov ecx, esp
mov byte [ebp - 4], 6
push str.Cancel
call fcn.004047f0
lea ecx, [edi + 0x418]
call fcn.00413dd0
mov byte [ebp - 4], 7
call fcn.00404210
mov ecx, eax
test ecx, ecx
je 0x40ea63
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x490], eax
push 0
push 0x4665c0
lea ecx, [edi + 0x490]
mov byte [ebp - 4], 8
mov dword [edi + 0x498], 0
mov dword [edi + 0x49c], 0
call fcn.00404510
mov eax, dword [ebp + 0x14]
or ebx, 0xffffffff
mov ecx, dword [ebp + 0x1c]
mov dword [edi + 0x494], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x498], eax
mov eax, dword [ebp + 0x20]
mov dword [edi + 0x4a0], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x49c], ecx
mov dword [edi + 0x4a8], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x40ea2e
mov eax, ecx
mov ebx, 0x1c
mov ecx, dword [ecx]
add eax, 8
mov dword [ebp + 0x14], ecx
lea ecx, [ebp - 0x24]
push eax
call fcn.0040e5b0
mov dword [ebp + 8], eax
cmp dword [edi + 0x9c], 0
mov eax, dword [edi + 0x90]
mov byte [ebp - 4], 9
mov dword [ebp + 0x24], eax
jne 0x40e9a6
mov eax, dword [edi + 0xa0]
mul ebx
mov ecx, eax
test edx, edx
ja 0x40ea6d
jb 0x40e947
cmp ecx, 0xffffffff
ja 0x40ea6d
mov eax, ecx
not eax
cmp eax, 8
jb 0x40ea6d
add ecx, 8
push ecx
call fcn.0043f6db
add esp, 4
test eax, eax
je 0x40ea6d
mov ecx, dword [edi + 0x98]
mov dword [eax], ecx
mov dword [edi + 0x98], eax
mov edx, dword [edi + 0xa0]
lea ecx, [edx*8]
sub ecx, edx
lea eax, [eax + ecx*4]
add eax, 0xffffffec
add edx, 0xffffffff
js 0x40e9a6
mov ecx, dword [edi + 0x9c]
mov dword [eax], ecx
mov dword [edi + 0x9c], eax
sub eax, 0x1c
sub edx, 1
jns 0x40e990
mov ebx, dword [edi + 0x9c]
push dword [ebp + 8]
mov esi, dword [ebx]
lea ecx, [ebx + 8]
call fcn.0040e5b0
mov eax, dword [ebp + 0x24]
mov dword [edi + 0x9c], esi
mov dword [ebx + 4], eax
mov dword [ebx], 0
inc dword [edi + 0x94]
mov eax, dword [edi + 0x90]
test eax, eax
je 0x40e9df
mov dword [eax], ebx
jmp 0x40e9e5
mov dword [edi + 0x8c], ebx
mov edx, dword [ebp - 0x20]
mov dword [edi + 0x90], ebx
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 8
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ea0c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ea26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x14]
jmp 0x40e8f1
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40ea4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0x80004005
call fcn.00404100
push 0x8007000e
call fcn.00404100
int3