Function at 0x44bfa0
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
add eax, 0xa
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0xa
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
je 0x44bfd5
cmp dword [ebp + 0xc], 0
je 0x44bfd5
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 6]
and eax, 0xff
cmp eax, 0xc
je 0x44bfda
jmp 0x44ca54
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 8]
mov eax, dword [ebp - 4]
mov byte [eax + edx], 0
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCR120.dll_strlen
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 6]
and eax, 0xff00
cmp eax, 0x100
jne 0x44c5ab
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x170], 0
jne 0x44c5ab
push str.Received_FC_PACKET_FILE_OPEN_r_n
push 0
call fcn.0044d670
add esp, 8
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax + 0x1d0]
test edx, edx
je 0x44c0df
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1a4], 0xa
jae 0x44c0da
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1a4], 0
jbe 0x44c0a0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a4]
shl eax, 2
push eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x1a8]
push ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x1a8]
push ecx
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x1a8], 0x200ffef
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a4]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1a4], eax
push str.Delay_FC_PACKET_FILE_OPEN_ACKFC_ERROR_FILE_IN_PROGRESS_r_n
push 0
call fcn.0044d670
add esp, 8
jmp 0x44c5a6
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x1a0], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x194], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x198], 0
lea edx, [ebp - 8]
push edx
push 0x5d2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x108]
push ecx
push str.FILE
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00446780
add esp, 0x18
test eax, eax
jbe 0x44c157
push 0x7f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x108]
push edx
mov eax, dword [ebp + 8]
add eax, 0x1d0
push eax
call dword [sym.imp.MSVCR120.dll_strncpy]
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push 0x5d2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x108]
push eax
push str.SIZE
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00446780
add esp, 0x18
test eax, eax
jbe 0x44c18f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x178], ecx
lea edx, [ebp - 8]
push edx
push 0x5d2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x108]
push ecx
push str.DRIVE
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00446780
add esp, 0x18
test eax, eax
jbe 0x44c2b9
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x108]
movsx edx, byte [ecx + edx]
cmp edx, 0x55
jne 0x44c1eb
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a0], 1
jmp 0x44c2b9
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x108]
movsx edx, byte [ecx + edx]
cmp edx, 0x46
jne 0x44c217
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a0], 2
jmp 0x44c2b9
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x108]
movsx edx, byte [ecx + edx]
cmp edx, 0x4b
jne 0x44c240
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a0], 3
jmp 0x44c2b9
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x108]
movsx edx, byte [ecx + edx]
cmp edx, 0x50
jne 0x44c269
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a0], 4
jmp 0x44c2b9
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x108]
movsx edx, byte [ecx + edx]
cmp edx, 0x42
jne 0x44c292
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a0], 5
jmp 0x44c2b9
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x108]
movsx edx, byte [ecx + edx]
cmp edx, 0x53
jne 0x44c2b9
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a0], 0
lea ecx, [ebp - 8]
push ecx
push 0x5d2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x108]
push eax
push 0x4ad36c
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00446780
add esp, 0x18
test eax, eax
jbe 0x44c2f2
mov eax, dword [ebp + 8]
mov dword [eax + 0x16c], 1
lea ecx, [ebp - 8]
push ecx
push 0x5d2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x108]
push eax
push 0x4ad370
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00446780
add esp, 0x18
test eax, eax
jbe 0x44c32b
mov eax, dword [ebp + 8]
mov dword [eax + 0x16c], 2
lea ecx, [ebp - 8]
push ecx
push 0x5d2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x108]
push eax
push str.FLASHBASE
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00446780
add esp, 0x18
test eax, eax
jbe 0x44c363
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x194], ecx
lea edx, [ebp - 8]
push edx
push 0x5d2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x108]
push ecx
push str.FLASHSIZE
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00446780
add esp, 0x18
test eax, eax
jbe 0x44c39b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x198], edx
lea eax, [ebp - 8]
push eax
push 0x5d2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x108]
push edx
push str.CLOCK
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00446780
add esp, 0x18
mov edx, dword [ebp + 8]
add edx, 0x1d0
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x178]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x16c]
push eax
push str.Open_File:_OP_u__size_lu__name_s_r_n
push 0
call fcn.0044d670
add esp, 0x14
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x170], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x17c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x180], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x184], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x18c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x178]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x16c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x16c
push ecx
call fcn.0044d930
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x19c], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x174], 0xffffffee
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x19c], 0
jle 0x44c486
mov edx, dword [ebp + 8]
mov dword [edx + 0x174], 2
mov eax, dword [ebp + 8]
mov dword [eax + 0x2dc], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1a4], 0xa
jae 0x44c536
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1a4], 0
jbe 0x44c4eb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a4]
shl ecx, 2
push ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x1a8]
push edx
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x1a8]
push edx
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x174]
and ecx, 0xffff
or ecx, 0x2000000
mov edx, 4
imul eax, edx, 0
mov edx, dword [ebp + 8]
mov dword [edx + eax + 0x1a8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a4]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x1a4], ecx
push str.Delay_FC_PACKET_FILE_OPEN_ACK_r_n
push 0
call fcn.0044d670
add esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x174], 2
jne 0x44c5a6
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x170], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 8]
mov dword [edx + 0x184], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2d0], 0
je 0x44c5a6
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2d4], 0
je 0x44c5a6
mov edx, dword [ebp + 8]
cmp dword [edx + 0x2d8], 0
je 0x44c5a6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2d4]
push ecx
push 7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2d8]
push eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x2d0]
call fcn.0044e5d0
jmp 0x44ca54
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 6]
and eax, 0xff00
cmp eax, 0x200
jne 0x44c6e4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x170], 1
jne 0x44c6e4
push str.Received_FC_PACKET_FILE_OPEN_ACK_r_n
push 0
call fcn.0044d670
add esp, 8
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
jl 0x44c652
mov eax, dword [ebp + 8]
mov dword [eax + 0x170], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x184], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x2d0], 0
je 0x44c64d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2d4], 0
je 0x44c64d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2d8], 0
je 0x44c64d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2d4]
push eax
push 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2d8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2d0]
call fcn.0044e5d0
jmp 0x44c6df
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ecx + 0x2dc], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x19c], 0
jle 0x44c67f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
push eax
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2d0], 0
je 0x44c6c7
mov edx, dword [ebp + 8]
cmp dword [edx + 0x2d4], 0
je 0x44c6c7
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2d8], 0
je 0x44c6c7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2d4]
push edx
push 9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2d8]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x2d0]
call fcn.0044e5d0
push 0x164
push 0
mov eax, dword [ebp + 8]
add eax, 0x16c
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
jmp 0x44ca54
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 6]
and edx, 0xff00
cmp edx, 0x400
jne 0x44c803
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR120.dll_atol]
add esp, 4
push eax
push str.Received_FC_PACKET_FILE_CLOSE:_code_d_r_n
push 0
call fcn.0044d670
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044dca0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 8]
mov dword [edx + 0x184], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR120.dll_atol]
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x174], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x174]
mov dword [edx + 0x2dc], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1a4], 0xa
jae 0x44c7f1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1a4], 0
jbe 0x44c7b5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a4]
shl edx, 2
push edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x1a8]
push eax
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x1a8]
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x174]
and edx, 0xffff
or edx, 0x5000000
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp + 8]
mov dword [eax + ecx + 0x1a8], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a4]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a4], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x170], 5
jmp 0x44ca54
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 6]
and eax, 0xff00
cmp eax, 0x500
jne 0x44c8eb
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x170], 5
jne 0x44c8eb
mov edx, dword [ebp + 8]
add edx, 0x1d0
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x178]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x16c]
push eax
push str._File_Closed:_OP_u__size_lu__name_s_r_n
push 0
call fcn.0044d670
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x184], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x19c], 0
jle 0x44c885
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
push ecx
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x2d0], 0
je 0x44c8cd
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2d4], 0
je 0x44c8cd
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2d8], 0
je 0x44c8cd
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2d4]
push eax
push 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2d8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2d0]
call fcn.0044e5d0
push 0x164
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x16c
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
jmp 0x44ca54
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 6]
and eax, 0xff00
cmp eax, 0x300
jne 0x44ca54
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x170], 2
je 0x44c91e
mov edx, dword [ebp + 8]
cmp dword [edx + 0x170], 3
jne 0x44ca54
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x184], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x16c], 1
jne 0x44ca47
mov eax, dword [ebp + 8]
cmp dword [eax + 0x19c], 0
jle 0x44ca47
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x19c]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 8]
push ecx
push 1
mov edx, dword [ebp + 0xc]
add edx, 0xa
push edx
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x180]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [edx + 0x180], ecx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 8]
cmp dword [ebp - 0x14], ecx
je 0x44ca47
mov edx, dword [ebp + 8]
mov dword [edx + 0x174], 0xffffffec
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1a4], 0xa
jae 0x44ca47
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1a4], 0
jbe 0x44c9fe
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a4]
shl eax, 2
push eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x1a8]
push ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x1a8]
push ecx
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x174]
and eax, 0xffff
or eax, 0x4000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + edx + 0x1a8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a4]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1a4], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x170], 5
jmp 0x44ca54
mov eax, dword [ebp + 8]
mov dword [eax + 0x170], 3
mov esp, ebp
pop ebp
ret