Function at 0x405870
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x42a470]
mov dword [ebp - 8], eax
cmp dword [0x42e6d4], 3
jl 0x40589c
push str.TraiterFichier___:
push 0x426648
call fcn.00405ef0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x42b96c], eax
mov eax, dword [ebp + 8]
push eax
push 0x42dd04
call fcn.004079e0
add esp, 8
mov ecx, dword [0x42b92c]
add ecx, 1
mov dword [0x42b92c], ecx
cmp dword [0x42b980], 0
je 0x405978
mov edx, dword [0x42b92c]
push edx
push str._d_r_n
lea eax, [ebp - 0x408]
push eax
call fcn.00407e60
add esp, 0xc
mov dword [ebp - 0x51c], eax
mov ecx, dword [0x42b980]
push ecx
mov edx, dword [ebp - 0x51c]
push edx
push 1
lea eax, [ebp - 0x408]
push eax
call fcn.0040865f
add esp, 0x10
mov dword [ebp - 0x40c], eax
cmp dword [0x42e6d4], 2
jl 0x40593c
mov ecx, dword [0x42b92c]
push ecx
push str.TraiterFichier___:_Page_n.__d
push 0x426678
call fcn.00405ef0
add esp, 0xc
mov edx, dword [ebp - 0x40c]
cmp edx, dword [ebp - 0x51c]
je 0x40596a
cmp dword [0x42e6d4], 1
jl 0x40596a
push 0x42fa80
push str.TraiterFichier___:_Error_while_writing_file_:__s
push 0x4266b4
call fcn.00405ef0
add esp, 0xc
mov eax, dword [0x42b980]
push eax
call fcn.00408c4e
add esp, 4
cmp dword [0x42b97c], 0
je 0x405b19
push 0x400
lea ecx, [ebp - 0x408]
push ecx
push 0x83
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 1
lea edx, [ebp - 0x408]
push edx
call fcn.00405e70
add esp, 8
cmp dword [0x42e6d4], 2
jl 0x4059d1
push str.TraiterFichier___:_Appel_de_la_fonction_NPP_PAGEFILEIMAGE
push 0x4266f8
call fcn.00405ef0
add esp, 8
push 0
push 0x42dce0
push 0
push 0xb
call dword [0x42b97c]
add esp, 0x10
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x405b19
cmp dword [ebp - 0x410], 1
jne 0x405a64
mov dword [ebp - 0x520], 0x400
lea eax, [ebp - 0x520]
push eax
lea ecx, [ebp - 0x408]
push ecx
push 0
push 1
call dword [0x42b97c]
add esp, 0x10
mov dword [ebp - 0x410], eax
push 1
lea edx, [ebp - 0x408]
push edx
call fcn.00405e70
add esp, 8
cmp dword [0x42e6d4], 2
jl 0x405a5f
lea eax, [ebp - 0x408]
push eax
push str.TraiterFichier___:_ToolBoxNpp_NPP_PAGEFILEIMAGE_Message_:__s
push 0x426740
call fcn.00405ef0
add esp, 0xc
jmp 0x405b19
push 0x400
lea ecx, [ebp - 0x408]
push ecx
push 0x81
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 1
lea edx, [ebp - 0x408]
push edx
call fcn.00405e70
add esp, 8
mov dword [0x42b988], 1
mov dword [ebp - 0x520], 0x400
lea eax, [ebp - 0x520]
push eax
lea ecx, [ebp - 0x408]
push ecx
push 0
push 2
call dword [0x42b97c]
add esp, 0x10
mov dword [ebp - 0x410], eax
push 1
lea edx, [ebp - 0x408]
push edx
call fcn.00405e70
add esp, 8
cmp dword [0x42e6d4], 1
jl 0x405afd
lea eax, [ebp - 0x408]
push eax
push str.TraiterFichier___:_ToolBoxNpp_NPP_PAGEFILEIMAGE_Fatal_error_:__s
push 0x42678c
call fcn.00405ef0
add esp, 0xc
lea ecx, [ebp - 0x408]
push ecx
push 0x430020
call fcn.004079e0
add esp, 8
or eax, 0xffffffff
jmp 0x405d09
cmp dword [0x42b984], 0
je 0x405c51
push 0x104
lea edx, [ebp - 0x518]
push edx
push 0x78
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x518]
push ecx
lea edx, [ebp - 0x408]
push edx
call fcn.00407e60
add esp, 0xc
mov dword [ebp - 0x51c], eax
mov eax, dword [0x42b984]
push eax
mov ecx, dword [ebp - 0x51c]
push ecx
push 1
lea edx, [ebp - 0x408]
push edx
call fcn.0040865f
add esp, 0x10
mov dword [ebp - 0x40c], eax
push 0x104
lea eax, [ebp - 0x518]
push eax
push 0x79
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [0x42dcf0]
push ecx
lea edx, [ebp - 0x518]
push edx
lea eax, [ebp - 0x408]
push eax
call fcn.00407e60
add esp, 0xc
mov dword [ebp - 0x51c], eax
mov ecx, dword [0x42b984]
push ecx
mov edx, dword [ebp - 0x51c]
push edx
push 1
lea eax, [ebp - 0x408]
push eax
call fcn.0040865f
add esp, 0x10
mov dword [ebp - 0x40c], eax
push 0x104
lea ecx, [ebp - 0x518]
push ecx
push 0x7a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov edx, dword [0x42dcec]
push edx
lea eax, [ebp - 0x518]
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.00407e60
add esp, 0xc
mov dword [ebp - 0x51c], eax
mov edx, dword [0x42b984]
push edx
mov eax, dword [ebp - 0x51c]
push eax
push 1
lea ecx, [ebp - 0x408]
push ecx
call fcn.0040865f
add esp, 0x10
mov dword [ebp - 0x40c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x42b970], eax
mov edx, dword [0x42b970]
sub edx, dword [0x42b96c]
mov dword [ebp - 4], edx
mov eax, dword [0x42b928]
add eax, dword [ebp - 4]
mov dword [0x42b928], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x42b92c]
push edx
push str.TraiterFichier___:_Trt_Page_n_:__ld______ld_ms
push 0x4267c4
call fcn.00405ef0
add esp, 0x10
cmp dword [0x42b984], 0
je 0x405d07
push 0x104
lea eax, [ebp - 0x518]
push eax
push 0x7b
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x42b92c]
push edx
lea eax, [ebp - 0x518]
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.00407e60
add esp, 0x10
mov dword [ebp - 0x51c], eax
mov edx, dword [0x42b984]
push edx
mov eax, dword [ebp - 0x51c]
push eax
push 1
lea ecx, [ebp - 0x408]
push ecx
call fcn.0040865f
add esp, 0x10
mov dword [ebp - 0x40c], eax
xor eax, eax
mov ecx, dword [ebp - 8]
call fcn.00408089
mov esp, ebp
pop ebp
ret