Function at 0x664363e0
Capabilities:
Access peb ldr_data
Get kernel32 base address
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, 0x48
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov edi, dword [ecx + 0x14]
mov esi, dword [sym.imp.ucrtbase.dll_strncmp]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 8], 4
mov dword [esp + 4], str.SL01
mov dword [esp], ebx
mov dword [ebp - 0x24], eax
call esi
movzx edx, byte [0x66444a34]
test eax, eax
jne 0x66436460
and edx, 8
mov esi, 1
jne 0x664365a0
cmp edi, 1
je 0x664364d8
mov eax, 1
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov byte [ebp - 0x25], dl
mov dword [esp + 8], 4
mov dword [esp + 4], str.LS01
mov dword [esp], ebx
call esi
movzx edx, byte [ebp - 0x25]
test eax, eax
mov esi, eax
jne 0x664365f0
and edx, 8
je 0x6643643f
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0x6644f3d0
mov dword [esp + 8], str.ThunkConnect32
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x66444a34
mov dword [esp], 3
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x10], eax
call fcn.66435c50
cmp edi, 1
jne 0x66436448
lea esi, [esi]
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x1c]
mov dword [esp], ebx
mov eax, dword [ebp - 0x20]
call fcn.66435d80
test eax, eax
je 0x664365f5
test esi, esi
je 0x66436658
mov eax, dword [eax + 0x10]
test eax, eax
je 0x664366c0
mov dword [ebx + 0xc], eax
mov esi, dword fs:[0x18]
mov dword [esp + 8], 0xc
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_HeapAlloc]
mov edx, eax
mov eax, dword [esi + 0x20]
sub esp, 0xc
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebx + 0x20]
mov dword [edx + 8], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x10]
mov dword [edx], eax
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x10], edx
test byte [0x66444a34], 8
je 0x66436448
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0xc], str.Process__08lx_allocated_TargetDB_entry_for_ThunkDataSL__p_n
mov dword [esp + 8], str.ThunkConnect32
mov dword [esp + 4], 0x66444a34
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.66435c50
mov eax, 1
jmp 0x6643644d
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0x6644f39c
mov dword [esp + 8], str.ThunkConnect32
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x66444a34
mov dword [esp], 3
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x10], eax
call fcn.66435c50
jmp 0x6643643f
and edx, 2
jne 0x66436608
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
movsx eax, byte [ebx + 3]
mov dword [esp + 0x1c], eax
movsx eax, byte [ebx + 2]
mov dword [esp + 0x18], eax
movsx eax, byte [ebx + 1]
mov dword [esp + 0x14], eax
movsx eax, byte [ebx]
mov dword [esp + 0xc], str.Invalid_magic__c_c_c_c_n
mov dword [esp + 8], str.ThunkConnect32
mov dword [esp + 4], 0x66444a34
mov dword [esp + 0x10], eax
mov dword [esp], 1
call fcn.66435c50
xor eax, eax
jmp 0x6643644d
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym.krnl386.exe16_MapSL
mov edx, dword [ebx + 0x1c]
mov dword [ebx + 8], eax
sub esp, 4
add edx, ebx
mov dword [edx + 8], eax
mov eax, 0xffffe0ff
mov dword [edx], 0x4d8ac933
mov dword [edx + 4], 0x8d148bfc
mov byte [edx + 0xc], 0xb8
mov dword [edx + 0xd], sym.krnl386.exe16_QT_Thunk
mov word [edx + 0x11], ax
mov eax, dword [ebx + 8]
mov edx, 0xffff9514
add ebx, dword [ebx + 0x20]
mov dword [ebx], 0x8bd1b60f
mov word [ebx + 4], dx
mov dword [ebx + 6], eax
mov byte [ebx + 0xa], 0x68
mov dword [ebx + 0xb], sym.krnl386.exe16_FT_Prolog
mov byte [ebx + 0xf], 0xc3
jmp 0x66436448
test byte [0x66444a34], 2
je 0x664365f5
mov dword [esp + 0xc], str.ThunkConnect16_was_not_called__n
mov dword [esp + 8], str.ThunkConnect32
mov dword [esp + 4], 0x66444a34
mov dword [esp], 1
call fcn.66435c50
xor eax, eax
jmp 0x664365f7