Function at 0x64a78240
Capabilities:
Access peb ldr_data
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, 0x58
mov ebx, dword [ecx]
test byte [0x64ab50c0], 8
jne 0x64a78460
test ebx, ebx
je 0x64a78490
mov eax, dword [ebx + 4]
test eax, eax
jne 0x64a78288
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
lea edx, [eax*8]
mov dword [ebp - 0x2c], eax
mov edi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 8], edx
mov esi, dword fs:[0x18]
mov dword [ebp - 0x1c], edx
mov dword [esp + 4], 8
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 8
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x64a784b7
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x64a784b7
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x20], 0
lea edx, [eax - 1]
test eax, eax
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x1c]
jle 0x64a783e6
mov esi, ecx
mov dword [ebp - 0x44], edx
xor ecx, ecx
mov dword [ebp - 0x20], edi
jmp 0x64a78329
cmp dword [ebp - 0x2c], esi
je 0x64a783e0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebx + 0xc]
mov edi, esi
sub eax, esi
add esi, 1
cmp byte [edx + eax], 0
jne 0x64a78320
mov eax, dword [ebp - 0x20]
add eax, ecx
mov dword [ebp - 0x34], eax
cmp edi, ecx
jl 0x64a784a8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x3c], esi
sub eax, ecx
mov dword [ebp - 0x1c], ebx
lea edx, [eax - 1]
mov dword [ebp - 0x40], eax
mov eax, ecx
lea esi, [esi]
mov edi, dword [ebp - 0x1c]
mov ecx, eax
mov esi, dword [edi + 8]
mov edi, dword [ebp - 0x24]
mov ebx, dword [esi + edx*8]
mov esi, dword [esi + edx*8 + 4]
mov dword [edi + eax*8], ebx
mov dword [edi + eax*8 + 4], esi
mov edi, dword [ebp - 0x1c]
mov esi, dword [edi + 0xc]
mov edi, dword [ebp - 0x20]
movzx ebx, byte [esi + edx]
sub edx, 1
mov byte [edi + eax], bl
add eax, 1
cmp dword [ebp - 0x28], ecx
jne 0x64a78368
mov ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x3c]
sub edi, ecx
mov ebx, dword [ebp - 0x1c]
mov byte [eax], 0
cmp edi, 1
jle 0x64a784ab
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebx + 0xc]
movzx eax, byte [eax + ecx - 1]
mov ecx, dword [ebp - 0x20]
and eax, 0xfffffff8
or al, byte [ecx + esi - 2]
mov ecx, dword [ebp - 0x20]
mov byte [ecx + esi - 1], al
mov ecx, esi
cmp dword [ebp - 0x2c], esi
jne 0x64a78329
mov edx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebx + 8]
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x24]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov esi, dword fs:[0x18]
call sym._memcpy
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memcpy
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 8], ecx
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
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 ebx
sub esp, 0xc
jmp 0x64a78272
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x64abae05
mov dword [esp + 8], str.GdipReversePath
mov dword [esp + 4], 0x64ab50c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
test ebx, ebx
jne 0x64a7826b
lea esp, [ebp - 0x10]
mov eax, 2
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov byte [eax], 0
mov eax, dword [ebx + 0xc]
movzx eax, byte [eax + ecx]
jmp 0x64a783ce
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
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 ebx
mov eax, 3
sub esp, 0xc
jmp 0x64a78274