Function at 0x10002d90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x238]
lea esi, [ebp - 0x23c]
push ebx
mov ebx, ecx
mov ecx, 0x40
sub esp, 0x258
mov dword [ebp - 0x248], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x23c], 0
test ebx, ebx
je 0x10002e14
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strcpy]
mov ecx, esi
mov edx, dword [ecx]
add ecx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x10002ddc
mov ebx, eax
shr ebx, 0x10
test eax, 0x8080
cmove eax, ebx
lea ebx, [ecx + 2]
cmove ecx, ebx
mov ebx, eax
add bl, al
mov ebx, 0x5c
sbb ecx, 3
mov word [ecx], bx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10002e2b
mov eax, dword [ebp + 8]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_strcat]
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x244], ecx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x18
mov edx, eax
lea eax, [eax + eax]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x240], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x10002f48
mov edx, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x244]
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x18
mov dword [esp], ebx
call sym._wine_get_unix_file_name
mov esi, eax
test eax, eax
je 0x10002f7d
mov dword [esp], eax
mov edx, dword [ebp - 0x24c]
mov ecx, str.__attach
mov eax, dword [ebp - 0x248]
call sym._add_argument
mov dword [esp + 8], esi
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
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 esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x10005038], 2
je 0x10002f40
mov dword [esp + 0xc], str.Out_of_memory_n
mov dword [esp + 8], 0x10007504
mov dword [esp + 4], 0x10005038
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
test byte [0x10005038], 2
je 0x10002f20
mov eax, ebx
shr eax, 0x10
je 0x1000301e
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
mov edx, eax
test eax, eax
je 0x10002fb8
jmp 0x10003087
add edx, 1
cmp word [ebx + edx*2], 0
jne 0x10002fb5
mov dword [ebp - 0x240], ebx
mov ecx, ebx
lea eax, [ebp - 0x136]
mov word [ebp - 0x138], 0x224c
lea esi, [ebp - 0x16]
lea edi, [edx - 1]
cmp eax, esi
ja 0x1000309d
test edx, edx
jle 0x1000309d
movzx edx, word [ecx]
add ecx, 2
cmp dx, 0xd
je 0x1000308e
ja 0x10003064
cmp dx, 9
je 0x10003123
cmp dx, 0xa
jne 0x100030d0
mov word [eax], 0x6e5c
mov edx, edi
add eax, 2
jmp 0x10002fd6
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Cannot_find_unix_path_of__s__not_attaching._n
mov dword [esp + 8], 0x10007504
mov dword [esp + 4], 0x10005038
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x10002f20
cmp dx, 0x22
je 0x10003147
cmp dx, 0x5c
jne 0x10003132
mov word [eax], 0x5c5c
mov edx, edi
add eax, 2
jmp 0x10002fd6
mov eax, str._invalid_
jmp 0x10003031
mov word [eax], 0x725c
mov edx, edi
add eax, 2
jmp 0x10002fd6
mov byte [eax], 0x22
mov ebx, dword [ebp - 0x240]
lea edx, [eax + 1]
test edi, edi
jle 0x100030ba
mov word [eax + 1], 0x2e2e
lea edx, [eax + 4]
mov byte [eax + 3], 0x2e
lea eax, [ebp - 0x138]
mov byte [edx], 0
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x10003031
mov esi, edx
mov byte [eax], 0x5c
add eax, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefadd_file]
mov esi, edx
shr si, 8
and esi, 0xf
mov byte [eax - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefadd_file]
mov esi, edx
and edx, 0xf
shr si, 4
movzx edx, byte [edx + str.0123456789abcdefadd_file]
and esi, 0xf
mov byte [eax - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefadd_file]
mov byte [eax - 1], dl
mov edx, edi
mov byte [eax - 2], bl
jmp 0x10002fd6
mov word [eax], 0x745c
mov edx, edi
add eax, 2
jmp 0x10002fd6
lea esi, [edx - 0x20]
cmp si, 0x5e
ja 0x100030d0
mov byte [eax], dl
add eax, 1
mov edx, edi
jmp 0x10002fd6
mov word [eax], 0x225c
mov edx, edi
add eax, 2
jmp 0x10002fd6