Function at 0x402810
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x168
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x14c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x150], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x154], eax
mov eax, 0xfde9
call dbg.strdupAtoW
mov dword [esp + 0x18], 0
mov edi, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x40298e
mov ebx, eax
lea eax, [ebp - 0x144]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
sub esp, 8
test eax, eax
je 0x40294b
mov eax, dword [ebp - 0x150]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x130]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FileTimeToDosDateTime]
movzx ecx, word [ebp - 0x144]
sub esp, 0xc
and ecx, 0x27
mov word [esi], cx
movzx eax, word [edi]
test ax, ax
je 0x402911
cmp ax, 0x7f
ja 0x402943
mov eax, edi
jmp 0x402906
cmp dx, 0x7f
ja 0x402943
add eax, 2
movzx edx, word [eax]
test dx, dx
jne 0x402900
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
or cl, 0x80
mov word [esi], cx
jmp 0x402911
mov esi, dword fs:[0x18]
mov ecx, dword [ebp - 0x154]
mov eax, dword [esi + 0x34]
mov dword [ecx], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, 0xffffffff
sub esp, 0xc
jmp 0x402937
mov eax, dword fs:[0x18]
mov esi, dword [ebp - 0x154]
mov eax, dword [eax + 0x34]
mov dword [esi], eax
test byte [0x405008], 2
mov dword [ebp - 0x150], eax
jne 0x4029c5
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
jmp 0x402978
test edi, edi
je 0x402ba8
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x402b86
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x402aad
xor ecx, ecx
cmp word [edi], 0
je 0x402a0f
add ecx, 1
cmp word [edi + ecx*2], 0
jne 0x402a05
lea eax, [ebp - 0x142]
mov byte [ebp - 0x144], 0x4c
mov byte [ebp - 0x143], 0x22
mov dword [ebp - 0x14c], edi
sub ecx, 1
lea edx, [ecx + 1]
test edx, edx
jle 0x402a83
lea esi, [ebp - 0x22]
cmp eax, esi
ja 0x402a83
add dword [ebp - 0x14c], 2
mov esi, dword [ebp - 0x14c]
movzx edx, word [esi - 2]
cmp dx, 0xd
je 0x402aff
ja 0x402ae4
cmp dx, 9
je 0x402b77
cmp dx, 0xa
jne 0x402b1d
sub ecx, 1
mov byte [eax], 0x5c
mov byte [eax + 1], 0x6e
lea edx, [ecx + 1]
add eax, 2
test edx, edx
jg 0x402a33
test ecx, ecx
mov byte [eax], 0x22
lea edx, [eax + 1]
jle 0x402a9c
lea edx, [eax + 4]
mov byte [eax + 1], 0x2e
mov byte [eax + 2], 0x2e
mov byte [eax + 3], 0x2e
lea eax, [ebp - 0x144]
mov byte [edx], 0
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov esi, dword [ebp - 0x150]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_open__s:_error__u_n
mov dword [esp + 8], 0x40661c
mov dword [esp + 4], 0x405008
mov dword [esp], 1
mov dword [esp + 0x14], esi
call sym._wine_dbg_log.constprop.11
jmp 0x4029ae
cmp dx, 0x22
je 0x402b0e
cmp dx, 0x5c
jne 0x402b1d
mov byte [eax], 0x5c
mov byte [eax + 1], 0x5c
add eax, 2
jmp 0x402a29
mov byte [eax], 0x5c
mov byte [eax + 1], 0x72
add eax, 2
jmp 0x402a29
mov byte [eax], 0x5c
mov byte [eax + 1], 0x22
add eax, 2
jmp 0x402a29
lea esi, [edx - 0x20]
cmp si, 0x5e
jbe 0x402b9e
mov esi, edx
mov byte [eax], 0x5c
add eax, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdeffci_get_open_info]
mov esi, edx
shr si, 8
and esi, 0xf
mov byte [eax - 4], bl
movzx ebx, byte [esi + str.0123456789abcdeffci_get_open_info]
mov esi, edx
shr si, 4
and edx, 0xf
and esi, 0xf
movzx edx, byte [edx + str.0123456789abcdeffci_get_open_info]
mov byte [eax - 3], bl
movzx ebx, byte [esi + str.0123456789abcdeffci_get_open_info]
mov byte [eax - 1], dl
mov byte [eax - 2], bl
jmp 0x402a29
mov byte [eax], 0x5c
mov byte [eax + 1], 0x74
add eax, 2
jmp 0x402a29
movzx eax, di
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.13
jmp 0x402aad
mov byte [eax], dl
add eax, 1
jmp 0x402a29
mov eax, str._null_
jmp 0x402aad