Function at 0x7ac2d040
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov edx, dword [eax + 0x4ac]
test edx, edx
je 0x7ac2d1a0
mov eax, dword [ebp + 8]
test byte [eax + 4], 1
jne 0x7ac2d098
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [esp + 8], eax
call edx
sub esp, 0x10
mov ebx, eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [ebp - 0x24], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x20
mov dword [ebp - 0x1c], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je case.0x7ac2d1ba.3
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], edi
mov edx, dword [ebp - 0x24]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x18]
sub esp, 0x20
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [eax + 0x4ac]
mov ecx, dword [ebp - 0x20]
sub esp, 0x10
mov ebx, eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ecx + 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 - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x7ac40fb0], 8
jne 0x7ac2d298
cmp dword [ebp + 0x18], 5
ja case.0x7ac2d1ba.3
mov eax, dword [ebp + 0x18]
jmp dword [eax*4 + 0x7ac4b234]
mov edx, dword [ebp + 0x10]
cmp dword [ebp + 0x10], ebx
jg 0x7ac2d1df
jmp 0x7ac2d087
add ebx, 1
cmp edx, ebx
je 0x7ac2d220
movzx eax, word [esi + ebx*2]
sub eax, 1
cmp ax, 0x1f
ja 0x7ac2d1d8
cmp dword [ebp + 0x10], ebx
jle 0x7ac2d087
mov edx, dword [ebp + 0x10]
jmp 0x7ac2d211
movzx eax, word [esi + ebx*2]
sub eax, 1
cmp ax, 0x1f
ja 0x7ac2d087
add ebx, 1
cmp edx, ebx
jne 0x7ac2d200
lea esi, [esi]
nop
mov ebx, dword [ebp + 0x10]
jmp 0x7ac2d087
test ebx, ebx
jne 0x7ac2d245
jmp case.0x7ac2d1ba.3
sub ebx, 1
je case.0x7ac2d1ba.3
movzx eax, word [esi + ebx*2 - 2]
sub eax, 1
cmp ax, 0x1f
jbe 0x7ac2d240
jmp 0x7ac2d26a
movzx eax, word [esi + ebx*2 - 2]
sub eax, 1
cmp ax, 0x1f
jbe 0x7ac2d087
sub ebx, 1
jne 0x7ac2d258
nop
xor ebx, ebx
jmp 0x7ac2d087
movzx eax, word [esi + ebx*2]
xor ebx, ebx
sub eax, 1
cmp ax, 0x1f
setbe bl
jmp 0x7ac2d087
mov edx, dword [ebp + 0x10]
mov eax, esi
call fcn.7ac2c7a0
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0xc], str.s_s__start_d__len_d__code_d_n
mov dword [esp + 0x18], edi
mov dword [esp + 8], 0x7ac4b25c
mov dword [esp + 4], 0x7ac40fb0
mov dword [esp], 3
call fcn.7ac2ca50
jmp 0x7ac2d1ad