Function at 0x416d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8b30
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x488
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0xffffffff
mov dword [ebp - 0x234], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov word [ebp - 0x230], ax
push 0x206
push 0
lea ecx, [ebp - 0x22e]
push ecx
call fcn.004677c0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x440], dx
push 0x206
push 0
lea eax, [ebp - 0x43e]
push eax
call fcn.004677c0
add esp, 0xc
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 8]
call fcn.00419630
movzx ecx, al
test ecx, ecx
je 0x416def
mov eax, 0xd
jmp 0x41734c
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0xffffffff
jne 0x416e24
mov eax, 0xd
jmp 0x41734c
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
push str.WriteHeaderFCWFile____File_s
call fcn.00456a00
add esp, 8
push 2
push 0
push 0
push 0
mov ecx, dword [ebp - 0x448]
push ecx
call fcn.0040dbc0
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x450], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x454], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x454]
cmp dword [ebp - 0x450], ecx
jae 0x4171d1
mov edx, dword [ebp - 0x450]
push edx
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
add eax, 0x41c
push eax
call fcn.00467f58
add esp, 4
shl eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x450]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x45c], eax
push 0
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x45c]
add ecx, 0x41c
push ecx
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x234]
push eax
push 4
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x450]
push eax
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x460], eax
push 0
lea ecx, [ebp - 0x234]
push ecx
push 1
mov edx, dword [ebp - 0x460]
add edx, 0xc5c
push edx
mov eax, dword [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x450]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x464], eax
push 0
lea edx, [ebp - 0x234]
push edx
push 8
mov eax, dword [ebp - 0x464]
add eax, 0xc54
push eax
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x450]
push edx
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x468], eax
push 0
lea eax, [ebp - 0x234]
push eax
push 8
mov ecx, dword [ebp - 0x468]
add ecx, 0xc44
push ecx
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x450]
push eax
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x46c], eax
push 0
lea ecx, [ebp - 0x234]
push ecx
push 8
mov edx, dword [ebp - 0x46c]
add edx, 0xc4c
push edx
mov eax, dword [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x450]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x470], eax
mov edx, dword [ebp - 0x470]
movzx eax, word [edx + 0x82c]
test eax, eax
jne 0x417045
mov ecx, dword [ebp - 0x450]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x474], eax
mov edx, dword [ebp - 0x474]
add edx, 0x214
push edx
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.0046a10d
add esp, 0xc
jmp 0x41707b
mov ecx, dword [ebp - 0x450]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x478], eax
mov edx, dword [ebp - 0x478]
add edx, 0x82c
push edx
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.0046a10d
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
call fcn.00467f58
add esp, 4
shl eax, 1
mov dword [ebp - 0x444], eax
push 0
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x444]
push eax
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x234]
push eax
push 4
lea ecx, [ebp - 0x444]
push ecx
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x450]
push eax
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x47c], eax
mov ecx, dword [ebp - 0x47c]
movzx edx, byte [ecx + 0xc5c]
push edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x440]
push ecx
push str.WriteHeaderFCWFile____FileOutName_s_lgFileOutName_d_TypeOfFile_d
call fcn.00456a00
add esp, 0x10
mov edx, dword [ebp - 0x450]
push edx
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x480], eax
mov eax, dword [ebp - 0x480]
mov ecx, dword [eax + 0xc58]
push ecx
mov edx, dword [eax + 0xc54]
push edx
mov eax, dword [ebp - 0x444]
push eax
lea ecx, [ebp - 0x230]
push ecx
push str.WriteHeaderFCWFile____FileName_s_lgFileName_d_OffSet_I64d
call fcn.00456a00
add esp, 0x14
mov edx, dword [ebp - 0x450]
push edx
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x484], eax
mov eax, dword [ebp - 0x484]
mov ecx, dword [eax + 0xc48]
push ecx
mov edx, dword [eax + 0xc44]
push edx
push str.WriteHeaderFCWFile____Size_I64u
call fcn.00456a00
add esp, 0xc
mov eax, dword [ebp - 0x450]
push eax
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x488], eax
mov ecx, dword [ebp - 0x488]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 0xc44]
mov eax, dword [ebp - 0x14]
adc eax, dword [ecx + 0xc48]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x450]
add ecx, 1
mov dword [ebp - 0x450], ecx
jmp 0x416e65
push 0
lea edx, [ebp - 0x234]
push edx
push 8
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x234]
push edx
push 4
lea eax, [ebp - 0x454]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x48c], eax
push 0
lea edx, [ebp - 0x234]
push edx
push 8
mov eax, dword [ebp - 0x48c]
add eax, 4
push eax
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x490], eax
push 0
lea edx, [ebp - 0x234]
push edx
push 4
mov eax, dword [ebp - 0x490]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x234]
push edx
push 0xf
push 0x4afb5c
mov eax, dword [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x454]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
push str.WriteHeaderFCWFile____TotSize_I64u_NbFiles_u
call fcn.00456a00
add esp, 0x10
push 0
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x494], eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00419650
mov dword [ebp - 0x498], eax
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x498]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [eax + 4]
push edx
push str.WriteHeaderFCWFile____TotSizeDisk_I64u_NbFilesDisk_u
call fcn.00456a00
add esp, 0x10
mov eax, dword [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x1c]
push eax
push str.WriteHeaderFCWFile____writing_header_done_in__d_ms
call fcn.00456a00
add esp, 8
jmp 0x41733f
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret