Function at 0x7ddf1525
Capabilities:
Get process heap flags
Identify system language via api

Disassembly:
push 0x198
push 0x7ddf1cf0
call fcn.7dd725e8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x138], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x184], esi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x160], eax
xor ebx, ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], ebx
xor eax, eax
lea edi, [ebp - 0x148]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x16c], ebx
mov eax, dword [ebp + 0x1c]
mov ecx, eax
shr ecx, 3
and ecx, 1
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x198], ebx
shr eax, 4
not eax
and eax, 1
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x164], ebx
push 1
lea eax, [ebp + 0x1c]
push eax
call fcn.7dd9ccd5
test eax, eax
jne 0x7ddf15d9
push 0xc000000d
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7ddf1ce4
push esi
call sub.KERNELBASE.dll_BaseDllMapResourceIdW
mov dword [ebp - 0x180], eax
cmp eax, 0xffffffff
je 0x7ddf15c8
mov edi, dword [ebp - 0x168]
push edi
call sub.KERNELBASE.dll_BaseDllMapResourceIdW
mov dword [ebp - 0x17c], eax
cmp eax, 0xffffffff
jne 0x7ddf160e
push dword [ebp - 0x180]
call sub.KERNELBASE.dll_BaseDllFreeResourceId
jmp 0x7ddf15c8
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 4], ebx
push 1
push dword [ebp - 0x138]
call sym.KERNEL32.dll_BasepMapModuleHandle
mov dword [ebp - 0x12c], eax
test byte [ebp + 0x24], 1
je 0x7ddf16a5
test esi, 0xffff0000
je 0x7ddf1671
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x134]
push eax
push esi
call fcn.7dd9ab82
mov dword [ebp - 0x120], eax
cmp eax, ebx
jge 0x7ddf1677
mov dword [ebp - 0x124], ebx
jmp 0x7ddf1bcd
mov dword [ebp - 0x134], esi
test edi, 0xffff0000
je 0x7ddf169f
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x130]
push eax
push edi
call fcn.7dd9ab82
mov dword [ebp - 0x120], eax
cmp eax, ebx
jl 0x7ddf1666
jmp 0x7ddf16a5
mov dword [ebp - 0x130], edi
cmp dword [ebp - 0x158], ebx
je 0x7ddf1704
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x15c]
push dword [ebp - 0x12c]
call fcn.7dd9cd1d
mov dword [ebp - 0x120], eax
cmp eax, ebx
jl 0x7ddf16f9
lea eax, [ebp - 0x164]
push eax
push ebx
push dword [ebp - 0x180]
push dword [ebp - 0x170]
call dword [sym.imp.ntdll.dll_LdrRscIsTypeExist]
mov dword [ebp - 0x120], eax
cmp eax, ebx
jl 0x7ddf1666
jmp 0x7ddf1704
cmp eax, 0xc000007b
je 0x7ddf1666
test byte [ebp + 0x1c], 6
je 0x7ddf1974
mov eax, dword [ebp - 0x170]
cmp eax, ebx
je 0x7ddf1964
test byte [eax + 0x10], 1
je 0x7ddf1964
test dword [ebp - 0x164], 0x20000
jne 0x7ddf1958
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x128], ebx
mov edi, dword [ebp + 0x20]
cmp di, bx
je 0x7ddf1771
test byte [ebp + 0x1c], 4
je 0x7ddf17ec
push edi
call fcn.7ddf00f9
test eax, eax
jne 0x7ddf17ec
mov dword [ebp - 0x120], 0xc00b0001
jmp 0x7ddf1974
mov eax, dword fs:[0x18]
push 0x40
push 8
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x144], eax
cmp eax, ebx
jne 0x7ddf17a0
mov dword [ebp - 0x120], 0xc0000017
jmp 0x7ddf1666
mov dword [ebp - 0x148], 0x20
lea eax, [ebp - 0x14c]
push eax
push ebx
push 0x7ddf055b
call fcn.7de16892
cmp dword [ebp - 0x16c], ebx
je 0x7ddf17d6
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x12c]
call fcn.7ddf01a6
cmp dword [ebp - 0x14c], ebx
jne 0x7ddf17f6
call fcn.7dd74511
mov ecx, dword [ebp - 0x144]
mov word [ecx], ax
mov dword [ebp - 0x14c], 1
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x14c]
jae 0x7ddf1915
cmp di, bx
je 0x7ddf1812
movzx esi, di
jmp 0x7ddf181c
mov ecx, dword [ebp - 0x144]
movzx esi, word [ecx + eax*2]
xor eax, eax
mov dword [ebp - 0x1a0], eax
cmp eax, dword [ebp - 0x150]
jae 0x7ddf183d
cmp word [ebp + eax*2 - 0x11c], si
je 0x7ddf190a
inc eax
jmp 0x7ddf181e
push 0x80
push ebx
lea eax, [ebp - 0x19c]
push eax
push esi
push dword [ebp - 0x12c]
call dword [sym.imp.ntdll.dll_LdrLoadAlternateResourceModuleEx]
mov dword [ebp - 0x120], eax
cmp eax, ebx
jl 0x7ddf1900
movzx eax, si
mov dword [ebp - 0x178], eax
lea ecx, [ebp - 0x1a4]
push ecx
push dword [ebp + 0x1c]
push eax
push dword [ebp - 0x17c]
push dword [ebp - 0x180]
push dword [ebp - 0x19c]
call fcn.7dd9d28e
mov dword [ebp - 0x120], eax
cmp eax, ebx
jl 0x7ddf190a
mov dword [ebp - 0x140], 1
mov eax, dword [ebp - 0x150]
mov word [ebp + eax*2 - 0x11c], si
inc dword [ebp - 0x150]
push dword [ebp + 0x18]
push esi
test byte [ebp + 0x24], 1
je 0x7ddf18f2
push dword [ebp - 0x130]
push dword [ebp - 0x134]
push dword [ebp - 0x138]
push dword [ebp - 0x160]
call fcn.7dd9c920
test eax, eax
jne 0x7ddf190a
mov dword [ebp - 0x120], 0xc00b0007
jmp 0x7ddf1666
push dword [ebp - 0x168]
push dword [ebp - 0x184]
jmp 0x7ddf18ce
mov dword [ebp - 0x120], 0xc00b0001
inc dword [ebp - 0x128]
jmp 0x7ddf17f6
cmp dword [ebp - 0x16c], ebx
jne 0x7ddf1937
test byte [ebp + 0x1c], 4
jne 0x7ddf1937
cmp di, bx
jne 0x7ddf1937
mov dword [ebp - 0x16c], 1
jmp 0x7ddf17bc
mov eax, dword fs:[0x18]
push dword [ebp - 0x144]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 0x144], ebx
jmp 0x7ddf1974
mov dword [ebp - 0x120], 0xc000008a
jmp 0x7ddf196e
mov dword [ebp - 0x120], 0xc00b0001
mov dword [ebp - 0x140], ebx
test byte [ebp + 0x1c], 1
je 0x7ddf1bcd
test dword [ebp - 0x164], 0x40000
jne 0x7ddf1bbd
cmp dword [ebp - 0x15c], ebx
je 0x7ddf19c0
push 1
push 0x100
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x12c]
call dword [sym.imp.ntdll.dll_LdrpResGetMappingSize]
mov dword [ebp - 0x120], eax
cmp eax, ebx
jge 0x7ddf19c0
mov dword [ebp - 0x154], ebx
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0x1c]
push dword [ebp - 0x154]
push dword [ebp - 0x12c]
call fcn.7dd9cd4a
mov dword [ebp - 0x120], eax
cmp eax, ebx
jl 0x7ddf1bcd
lea eax, [ebp - 0x174]
push eax
mov eax, dword [ebp + 0x1c]
or eax, 0x400
push eax
push ebx
push dword [ebp - 0x17c]
push dword [ebp - 0x180]
push dword [ebp - 0x12c]
call fcn.7dd9d28e
mov dword [ebp - 0x120], eax
cmp eax, ebx
jl 0x7ddf1bcd
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x174]
cmp dword [ebp - 0x15c], ebx
je 0x7ddf1a7f
lea eax, [ebp - 0x158]
push eax
push 0x10
push esi
call fcn.7dd836d6
test eax, eax
jl 0x7ddf1a6a
lea ecx, [esi + 0x10]
mov eax, dword [ebp - 0x12c]
and eax, 0xfffffffc
cmp ecx, eax
jb 0x7ddf1a6a
mov edx, dword [ebp - 0x154]
add eax, edx
cmp ecx, eax
jbe 0x7ddf1a7f
push 0xc000007b
call sym.KERNEL32.dll_BaseSetLastNTError
mov dword [ebp - 0x124], ebx
jmp 0x7ddf1bb8
lea edi, [esi + 0x10]
mov dword [ebp - 0x194], edi
cmp word [esi + 0xc], bx
je 0x7ddf1a9d
mov dword [ebp - 0x120], 0xc000007b
jmp 0x7ddf1bb8
cmp dword [ebp - 0x15c], ebx
je 0x7ddf1ae5
movzx eax, word [esi + 0xe]
cmp ax, bx
je 0x7ddf1ae5
lea ecx, [ebp - 0x158]
push ecx
push 8
movzx eax, ax
push eax
call fcn.7ddf00db
test eax, eax
jl 0x7ddf1a6a
mov eax, dword [ebp - 0x158]
add eax, esi
mov ecx, dword [ebp - 0x12c]
and ecx, 0xfffffffc
cmp eax, ecx
jb 0x7ddf1a6a
mov edx, dword [ebp - 0x154]
add ecx, edx
cmp eax, ecx
ja 0x7ddf1a6a
mov dword [ebp - 0x128], ebx
movzx eax, word [esi + 0xe]
cmp dword [ebp - 0x128], eax
jae 0x7ddf1bb8
movzx eax, word [edi]
xor ecx, ecx
mov dword [ebp - 0x188], ecx
cmp ecx, dword [ebp - 0x150]
jae 0x7ddf1b1b
cmp word [ebp + ecx*2 - 0x11c], ax
je 0x7ddf1b73
inc ecx
jmp 0x7ddf1b00
mov dword [ebp - 0x13c], 1
push dword [ebp + 0x18]
push eax
test byte [ebp + 0x24], 1
je 0x7ddf1b5f
push dword [ebp - 0x130]
push dword [ebp - 0x134]
push dword [ebp - 0x138]
push dword [ebp - 0x160]
call fcn.7dd9c920
test eax, eax
jne 0x7ddf1b6d
mov dword [ebp - 0x120], 0xc00b0007
jmp 0x7ddf1a74
push dword [ebp - 0x168]
push dword [ebp - 0x184]
jmp 0x7ddf1b3b
mov esi, dword [ebp - 0x174]
add edi, 8
mov dword [ebp - 0x194], edi
inc dword [ebp - 0x128]
jmp 0x7ddf1aeb
mov dword [ebp - 4], ebx
jmp 0x7ddf1bcd
mov dword [ebp - 0x120], 0xc000008a
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddf1c15
mov eax, dword [ebp + 0x1c]
mov esi, eax
and esi, 1
je 0x7ddf1c9a
test al, 6
je 0x7ddf1c9a
cmp dword [ebp - 0x140], ebx
jne 0x7ddf1c9a
cmp dword [ebp - 0x13c], ebx
jne 0x7ddf1c9a
xor esi, esi
jmp 0x7ddf1cd7
mov ecx, eax
not ecx
test cl, 1
je 0x7ddf1cb3
test al, 6
je 0x7ddf1cb3
cmp dword [ebp - 0x140], ebx
je 0x7ddf1c07
cmp esi, ebx
je 0x7ddf1cc7
test al, 6
jne 0x7ddf1cc7
cmp dword [ebp - 0x13c], ebx
jne 0x7ddf1cc7
xor esi, esi
jmp 0x7ddf1ccd
mov esi, dword [ebp - 0x124]
cmp esi, ebx
je 0x7ddf1cd7
mov dword [ebp - 0x120], ebx
push dword [ebp - 0x120]
call sym.KERNEL32.dll_BaseSetLastNTError
mov eax, esi
call fcn.7dd72630
ret 0x20