Function at 0x445ce0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x953c
call fcn.004b7240
mov eax, dword [esp + 0x9544]
push ebx
push ebp
mov ebp, dword [esp + 0x9550]
mov ebx, dword [eax + 0xcc]
push esi
push edi
xor edi, edi
mov eax, dword [ebx + ebp*4 + 0x3a4]
mov ecx, dword [ebx + ebp*4 + 0x214]
mov esi, dword [ebx + ebp*4 + 0x9e4]
sub ecx, eax
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + ebp*4 + 0x6c4]
add esi, ecx
push edi
mov dword [esp + 0x14], 1
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
add esi, eax
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [ebx + ebp*4 + 0x2348], edi
je 0x445d83
cmp dword [ebx + ebp*4 + 0x2988], edi
je 0x445d83
push ebp
push ebx
call fcn.0046fc00
mov ecx, dword [ebx + ebp*4 + 0x2988]
mov edx, dword [ebx + ebp*4 + 0x2348]
push eax
push ecx
push edx
call fcn.0046e9f0
add esp, 0x14
test eax, eax
je 0x446194
mov edi, dword [esp + 0x955c]
push edi
call fcn.00488270
add esp, 4
test eax, eax
je 0x445dac
mov ecx, dword [esp + 0x9550]
test ecx, ecx
je 0x445dac
add eax, 2
push eax
call dword [ecx + 0xc]
add esp, 4
mov eax, dword [esp + 0x9564]
cmp eax, 3
jne 0x445dcc
push ebp
push ebx
call fcn.004b3040
add esp, 8
call fcn.004b3010
jmp 0x445eed
cmp eax, 1
jne 0x445e08
mov eax, dword [esp + 0x9560]
push esi
push eax
call fcn.004459e0
add esp, 8
cmp eax, 0xffffffff
jne 0x445eed
push str.Writing_file_failed.
push 0x1a6
call fcn.004a6ea0
push eax
call fcn.00486770
add esp, 0xc
jmp 0x446314
cmp eax, 2
jne 0x445e36
push edi
call fcn.00447e50
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x445eed
push 0x514924
push str.Error_opening__s_encoder.
push 0x1a7
jmp 0x4462f4
cmp eax, 4
jne 0x445e75
lea eax, [esi + esi*2]
shl eax, 4
add eax, esi
lea eax, [eax + eax*2]
shl eax, 4
push eax
push edi
call fcn.004b36a0
add esp, 8
test eax, eax
jne 0x445e6b
push 0x51491c
push str.Error_opening__s_encoder.
push 0x1a7
jmp 0x4462f4
mov dword [esp + 0x30], 1
jmp 0x445eed
cmp eax, 5
jne 0x445eb6
lea eax, [esi + esi*2]
push ebp
shl eax, 4
add eax, esi
push ebx
lea eax, [eax + eax*2]
shl eax, 4
push eax
push edi
call fcn.004b4990
add esp, 0x10
test eax, eax
jne 0x445eac
push 0x514910
push str.Error_opening__s_encoder.
push 0x1a7
jmp 0x4462f4
mov dword [esp + 0x38], 1
jmp 0x445eed
cmp eax, 6
jne 0x445eed
mov eax, dword [esp + 0x9560]
push ebp
push ebx
push eax
call fcn.004b5990
add esp, 0xc
test eax, eax
jne 0x445ee5
push 0x514908
push str.Error_opening__s_encoder.
push 0x1a7
jmp 0x4462f4
mov dword [esp + 0x34], 1
mov eax, esi
push 0
cdq
push 0x930
push edx
push eax
call fcn.004b74a0
mov edi, edx
mov esi, eax
test edi, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
jl 0x446194
jg 0x445f2e
test esi, esi
jbe 0x446194
jmp 0x445f2e
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x9550]
test eax, eax
je 0x445f4d
mov eax, dword [eax + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x446140
test edi, edi
jl 0x445f60
jg 0x445f5b
cmp esi, 0x9300
jbe 0x445f60
mov esi, 0x9300
mov eax, 0x6f74ae27
imul esi
sar edx, 0xa
mov eax, dword [esp + 0x28]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esp + 0x48]
mov edi, edx
lea edx, [esp + 0x24c]
push edi
push edx
mov edx, dword [esp + 0x955c]
add eax, ecx
push eax
push edx
mov dword [esp + 0x28], edi
call fcn.00417820
add esp, 0x10
cmp eax, edi
jne 0x446154
mov eax, dword [esp + 0x9564]
cmp eax, 3
jne 0x44608f
xor eax, eax
xor edi, edi
cmp esi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
je 0x446028
mov eax, esi
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x44]
push edx
push ecx
lea edx, [esp + edi + 0x258]
push eax
push edx
call fcn.004b2a60
add esp, 0x14
test eax, eax
je 0x44616a
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
push 0
push eax
mov eax, dword [esp + 0x9568]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov dword [esp + 0x14], eax
je 0x44616a
mov edx, dword [esp + 0x1c]
mov eax, esi
add edi, edx
sub eax, edi
jne 0x445fc9
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x44616a
mov ecx, dword [esp + 0x20]
mov eax, esi
mov esi, dword [esp + 0x24]
cdq
sub ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
sbb esi, edx
add ecx, edi
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x9550]
test ecx, ecx
mov dword [esp + 0x24], esi
je 0x44606c
push edx
push eax
call dword [ecx + 4]
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
jg 0x445f26
jl 0x446194
mov eax, dword [esp + 0x20]
test eax, eax
ja 0x445f26
jmp 0x446194
cmp eax, 1
jne 0x4460bb
mov eax, dword [esp + 0x9560]
lea ecx, [esp + 0x3c]
push 0
push ecx
lea edx, [esp + 0x254]
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x14], eax
jmp 0x44602c
cmp eax, 4
jne 0x4460da
lea ecx, [esp + 0x24c]
push esi
push ecx
call fcn.004b3790
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x44602c
cmp eax, 5
jne 0x4460f9
lea edx, [esp + 0x24c]
push esi
push edx
call fcn.004b4ae0
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x44602c
cmp eax, 2
jne 0x44611d
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x24c]
push esi
push eax
push ecx
call fcn.00447ec0
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x44602c
cmp eax, 6
jne 0x44602c
lea edx, [esp + 0x24c]
push esi
push edx
call fcn.004b5f30
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x44602c
mov dword [0x5de0a4], 1
mov dword [esp + 0x10], 0
jmp 0x446194
push 0
call fcn.00486880
add esp, 4
mov dword [0x5de0a4], 4
jmp 0x44618c
push str.Writing_file_failed.
push 0x1a6
call fcn.004a6ea0
push eax
call fcn.00486770
add esp, 0xc
mov dword [0x5de0a4], 3
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x9564]
cmp eax, 3
jne 0x446228
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
call fcn.004b2b60
add esp, 8
test eax, eax
je 0x446326
cmp dword [esp + 0x10], 1
jne 0x446326
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x446326
mov ecx, dword [esp + 0x9560]
lea edx, [esp + 0x3c]
push esi
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x446326
push str.Writing_file_failed.
push 0x1a6
call fcn.004a6ea0
push eax
call fcn.00486770
add esp, 0xc
mov dword [0x5de0a4], 3
jmp 0x44631e
cmp eax, 4
jne 0x446276
mov eax, dword [esp + 0x30]
test eax, eax
je 0x446326
call fcn.004b37c0
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x446256
cmp eax, 1
jne 0x446326
push 0x51491c
jmp 0x4462a4
cmp eax, 1
jne 0x446326
mov ecx, dword [esp + 0x955c]
push ebp
push ebx
push ecx
call fcn.004b3840
add esp, 0xc
jmp 0x446326
cmp eax, 5
jne 0x4462c8
mov eax, dword [esp + 0x38]
test eax, eax
je 0x446326
call fcn.004b4bb0
test eax, eax
jne 0x446326
cmp dword [esp + 0x10], 1
jne 0x446326
push 0x514910
push str.Error_finishing__s_encoder.
push 0x1e3
call fcn.004a6ea0
add esp, 8
lea edx, [esp + 0x50]
push eax
push edx
call fcn.004b7592
lea eax, [esp + 0x58]
push eax
jmp 0x44630c
cmp eax, 6
jne 0x446326
mov eax, dword [esp + 0x34]
test eax, eax
je 0x446326
call fcn.004b5ff0
test eax, eax
jne 0x446326
cmp dword [esp + 0x10], 1
jne 0x446326
push 0x514908
push str.Error_finishing__s_encoder.
push 0x1e3
call fcn.004a6ea0
add esp, 8
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.004b7592
lea edx, [esp + 0x58]
push edx
call fcn.00486770
add esp, 0x10
mov dword [0x5de0a4], 2
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x2c]
push eax
call fcn.00447ee0
add esp, 4
call fcn.0046eb90
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x953c
ret