Function at 0x10040c30
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x120
mov esi, esp
mov dword [esi + 0x108], ebp
mov ecx, dword [ebp + 0x10]
lea edi, [esi + 0x110]
mov dword [edi - 4], esp
xor eax, eax
dec eax
mov dword [edi + 8], eax
mov dword [edi + 4], 0x100558e0
mov edx, dword fs:[0]
mov dword [edi], edx
mov edx, dword [ebp + 0xc]
mov dword fs:[0], edi
mov dword [esi + 0x14], edx
mov dword [esi + 0x3c], ecx
mov dl, 0xff
lea ecx, [esi + 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea eax, [esi + 0xb]
mov byte [eax], dl
lea ebx, [esi + 0x13]
mov byte [ebx], dl
pcmpeqd xmm0, xmm0
lea eax, [esi + 0x40]
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
mov edx, dword [ebp + 0x14]
push ebx
lea ebx, [esi + 0xb]
push ebx
push eax
call fcn.10044430
add esp, 0xc
xor eax, eax
lea ecx, [esi + 0x18]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [edi + 8], eax
push eax
push 0xa
call fcn.10056770
cmp byte [esi + 0x23], 0
lea eax, [esi + 0x18]
jns 0x10040cd5
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x24]
mov dword [esi + 0xc], eax
mov dword [ecx], eax
lea edi, [esi + 0x68]
push 0xa0
push 0xff
push edi
call fcn.10149430
add esp, 0xc
lea eax, [esi + 0x2c]
mov dword [eax], edi
lea eax, [esi + 0x28]
mov dword [eax], 0
lea eax, [esi + 0xa]
mov byte [eax], 1
lea eax, [esi + 0x12]
mov byte [eax], 0x45
mov al, byte [esi + 0x13]
mov byte [esi + 0x11], al
mov al, byte [esi + 0xb]
mov byte [esi + 0x10], al
lea ecx, [esi + 0x14]
lea eax, [esi + 0x3c]
push eax
call fcn.10036820
test al, al
jne 0x10040e3c
mov eax, dword [esi + 0x24]
movzx ebx, byte [esi + 0x23]
test bl, bl
mov edx, dword [esi + 0xc]
jns 0x10040d3e
mov ebx, dword [esi + 0x1c]
lea ecx, [edx + ebx]
cmp eax, ecx
jne 0x10040d8c
mov dword [esi + 0xc], ebx
lea eax, [ebx + ebx]
lea ecx, [esi + 0x18]
push 0
push eax
call fcn.10056770
mov eax, dword [esi + 0x20]
mov ecx, 0x7fffffff
and eax, ecx
dec eax
cmp byte [esi + 0x23], 0
mov ecx, 0xa
cmovns eax, ecx
lea ecx, [esi + 0x18]
push 0
push eax
call fcn.10056770
cmp byte [esi + 0x23], 0
lea edx, [esi + 0x18]
jns 0x10040d84
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
add eax, edx
mov dword [esi + 0x24], eax
mov dword [esi + 0xc], edx
mov edi, dword [esi + 0x14]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x10040d9e
mov al, byte [eax]
jmp 0x10040dc3
mov eax, dword [edi]
mov ebx, dword [eax + 0x20]
mov dword [esi + 0x118], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov dword [esi + 0x118], 0
mov ecx, edi
call ebx
movsx edi, byte [esi + 0x11]
movsx ebx, byte [esi + 0x10]
movsx ecx, al
lea edx, [esi + 0xa]
lea eax, [esi + 0x40]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x2c]
push eax
lea eax, [esi + 0x68]
push eax
lea eax, [esi + 0x30]
push eax
push edi
push ebx
lea eax, [esi + 0x24]
push eax
push dword [esi + 0xc]
lea eax, [esi + 0x12]
push eax
call fcn.1004459c
add esp, 0x28
test eax, eax
jne 0x10040e3c
mov edi, dword [esi + 0x14]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x10040e12
inc eax
mov dword [edi + 0xc], eax
jmp 0x10040d19
mov eax, dword [edi]
mov ebx, dword [eax + 0x24]
mov dword [esi + 0x118], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov dword [esi + 0x118], 0
mov ecx, edi
call ebx
jmp 0x10040d19
mov ecx, dword [esi + 0xc]
movzx eax, byte [esi + 0x3b]
test al, al
jns 0x10040e4a
mov eax, dword [esi + 0x34]
mov edi, dword [esi + 0x2c]
test eax, eax
je 0x10040e6d
cmp byte [esi + 0xa], 0
je 0x10040e6d
mov eax, edi
lea edx, [esi + 0x68]
sub eax, edx
cmp eax, 0x9f
jg 0x10040e6d
mov eax, dword [esi + 0x28]
mov dword [edi], eax
add edi, 4
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0x18]
push ebx
call fcn.10055485
add esp, 4
mov eax, dword [ebp + 0x1c]
movq qword [eax], xmm0
lea ecx, [esi + 0x30]
lea edx, [esi + 0x68]
push ebx
push edi
call fcn.1004cd36
add esp, 8
lea ecx, [esi + 0x14]
lea eax, [esi + 0x3c]
push eax
call fcn.10036820
test al, al
je 0x10040ea9
mov eax, dword [ebp + 0x18]
or byte [eax], 2
mov eax, dword [esi + 0x14]
mov edi, dword [ebp + 8]
mov dword [edi], eax
cmp byte [esi + 0x23], 0
jns 0x10040ec2
push dword [esi + 0x18]
call fcn.10145bd4
add esp, 4
cmp byte [esi + 0x3b], 0
jns 0x10040ed3
push dword [esi + 0x30]
call fcn.10145bd4
add esp, 4
mov eax, dword [esi + 0x110]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18