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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
mov eax, dword [0x42a470]
mov dword [ebp - 8], eax
cmp dword [0x42e6d4], 3
jl 0x40472c
push str.CloseToolBox___:
push 0x425fcc
call fcn.00405ef0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x42b96c], eax
cmp dword [0x42b988], 0
je 0x4047b2
cmp dword [0x42e6d4], 2
jl 0x40475b
push str.Fin_de_Job_avec_erreur
push 0x425fec
call fcn.00405ef0
add esp, 8
movsx eax, byte [0x430020]
test eax, eax
je 0x40478c
push 0x430020
push 0x425ff4
push 0x426000
lea ecx, [ebp - 0x408]
push ecx
call fcn.00407e60
add esp, 0x10
mov dword [ebp - 0x51c], eax
jmp 0x4047b0
push str.Error
push 0x426014
push 0x426020
lea edx, [ebp - 0x408]
push edx
call fcn.00407e60
add esp, 0x10
mov dword [ebp - 0x51c], eax
jmp 0x4047f1
cmp dword [0x42e6d4], 2
jl 0x4047cd
push str.Fin_de_Job_Ok
push 0x42603c
call fcn.00405ef0
add esp, 8
push 0x426044
push str._EndJob_
push str._s_r_n_s_r_n
lea eax, [ebp - 0x408]
push eax
call fcn.00407e60
add esp, 0x10
mov dword [ebp - 0x51c], eax
cmp dword [0x42b980], 0
je 0x40488b
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 0x404845
lea ecx, [ebp - 0x408]
push ecx
push str.EndJob___s
push 0x42606c
call fcn.00405ef0
add esp, 0xc
mov edx, dword [ebp - 0x40c]
cmp edx, dword [ebp - 0x51c]
je 0x404873
cmp dword [0x42e6d4], 1
jl 0x404873
push 0x42fa80
push 0x426074
push 0x426094
call fcn.00405ef0
add esp, 0xc
mov eax, dword [0x42b980]
push eax
call fcn.00408609
add esp, 4
mov dword [0x42b980], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x42b970], eax
mov ecx, dword [0x42b970]
sub ecx, dword [0x42b96c]
mov dword [ebp - 4], ecx
mov edx, dword [0x42b928]
add edx, dword [ebp - 4]
mov dword [0x42b928], edx
cmp dword [0x42b928], 0x3e8
jbe 0x4048e3
mov eax, dword [0x42b928]
xor edx, edx
mov ecx, 0x3e8
div ecx
push eax
push str.Temps_de_traitement_total_du_job_:__ld_s
push 0x4260c8
call fcn.00405ef0
add esp, 0xc
jmp 0x4048fc
mov edx, dword [0x42b928]
push edx
push str.Temps_de_traitement_total_du_job_:__ld_ms
push 0x4260fc
call fcn.00405ef0
add esp, 0xc
cmp dword [0x42b984], 0
je 0x404a63
cmp dword [0x42b988], 0
je 0x404931
push 0x104
lea eax, [ebp - 0x518]
push eax
push 0x7d
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
jmp 0x40494e
push 0x104
lea ecx, [ebp - 0x518]
push ecx
push 0x7c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp - 0x518]
push edx
lea eax, [ebp - 0x408]
push eax
call fcn.00407e60
add esp, 8
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
cmp dword [0x42b928], 0x3e8
jbe 0x4049e5
push 0x104
lea ecx, [ebp - 0x518]
push ecx
push 0x7e
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [0x42b928]
xor edx, edx
mov ecx, 0x3e8
div ecx
push eax
lea edx, [ebp - 0x518]
push edx
lea eax, [ebp - 0x408]
push eax
call fcn.00407e60
add esp, 0xc
mov dword [ebp - 0x51c], eax
jmp 0x404a25
push 0x104
lea ecx, [ebp - 0x518]
push ecx
push 0x7f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov edx, dword [0x42b928]
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
mov edx, dword [0x42b984]
push edx
call fcn.00408609
add esp, 4
mov dword [0x42b984], 0
cmp dword [0x42b97c], 0
je 0x404a83
push 0
push 0
push 0
push 4
call dword [0x42b97c]
add esp, 0x10
mov dword [ebp - 0x410], eax
cmp dword [0x42b978], 0
je 0x404aac
mov eax, dword [0x42b978]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x42b978], 0
mov dword [0x42b97c], 0
mov dword [0x42b974], 0
mov dword [0x42b988], 0
xor eax, eax
mov ecx, dword [ebp - 8]
call fcn.00408089
mov esp, ebp
pop ebp
ret