Function at 0x401230
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x228
push ebx
mov ebx, dword [esp + 0x230]
push ebp
push esi
test ebx, ebx
jne 0x40125d
push str.cabName__NULL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret 8
lea eax, [esp + 0x10]
push eax
push 1
push 0x401090
push 0x401080
push 0x401060
push 0x401040
push fcn.00401020
push 0x401010
push section..text
call sub.Cabinet.dll_FDICreate
mov ebp, eax
add esp, 0x24
test ebp, ebp
jne 0x4012ae
push str.hfdi__NULL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret 8
push 0
push 0x8020
push ebx
call fcn.00401020
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x4012e7
push ebp
call sub.Cabinet.dll_FDIDestroy
add esp, 4
push str.hf___1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret 8
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebp
call sub.Cabinet.dll_FDIIsCabinet
add esp, 0xc
test eax, eax
jne 0x401323
push str.FALSE__FDIIsCabinet
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.MSVCRT.dll__close]
push ebp
call sub.Cabinet.dll_FDIDestroy
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x228
ret 8
push edi
push esi
call dword [sym.imp.MSVCRT.dll__close]
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x401389
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x138]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x409afc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4013d2
lea edi, [edx + 1]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x138]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
lea edx, [esp + 0x38]
sub esi, ebx
lea ecx, [esi + 1]
push ecx
push ebx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esp + esi + 0x39], 0
mov edi, dword [esp + 0x240]
test edi, edi
jne 0x4013fe
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4099f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x401419
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4099f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 0
push 0x4010b0
lea eax, [esp + 0x44]
push 0
lea ecx, [esp + 0x148]
push eax
push ecx
push ebp
call sub.Cabinet.dll_FDICopy
add esp, 0x1c
cmp eax, 1
pop edi
je 0x401467
push str.TRUE___FDICopy
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
call sub.Cabinet.dll_FDIDestroy
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x228
ret 8
push ebp
call sub.Cabinet.dll_FDIDestroy
add esp, 4
cmp eax, 1
je 0x40148e
push str.FDIDestroy_hfdi____TRUE
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret 8
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x228
ret 8