Function at 0x40d040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42a238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
mov ebx, ecx
xor eax, eax
push ebp
xor ebp, ebp
mov dword [ebx + 0x489ed8], ebp
mov dword [ebx + 0x489edc], ebp
lea ecx, [ebx + 0x48ba10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov eax, dword [ebx + 0x4a7f34]
mov dword [ebx + 0x48b5f0], ebp
mov dword [ebx + 0x48b5f4], ebp
mov eax, dword [eax + 0x2c]
push esi
xor edx, edx
cmp eax, ebp
push edi
jle 0x40d0e4
xor eax, eax
lea ecx, [ebx + 0x489ee4]
mov esi, dword [ebx + 0x4a7f34]
fld qword [eax + esi + 0x4f4]
inc edx
fstp dword [ecx - 4]
mov esi, dword [ebx + 0x4a7f34]
fld qword [eax + esi + 0x4fc]
add eax, 0x14
fstp dword [ecx]
mov esi, dword [ebx + 0x4a7f34]
mov edi, dword [esi + 0x2c]
add ecx, 8
cmp edx, edi
jl 0x40d0b1
mov ecx, dword [ebx + 0x82d10]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
mov ecx, dword [ebx + 0x82d1c]
push 0x42bfb0
push ebp
push 2
mov edi, dword [sym.imp.GDI32.dll_CreateFontW]
push ebp
push ebp
push 0xcc
push ebp
mov eax, 0x38e38e39
imul ecx
push ebp
push ebp
push 0xc8
sar edx, 4
push ebp
mov eax, edx
push ebp
shr eax, 0x1f
push ebp
add eax, edx
push eax
call edi
mov ecx, dword [ebx + 0x82d14]
push ecx
mov dword [ebx + 0x82d10], eax
call esi
mov ecx, dword [ebx + 0x82d1c]
push 0x42bfb0
push ebp
push 2
push ebp
push ebp
push 0xcc
push ebp
mov eax, 0x66666667
imul ecx
push ebp
push ebp
push 0xc8
sar edx, 5
push ebp
mov eax, edx
push 0x384
shr eax, 0x1f
push ebp
add eax, edx
push eax
call edi
mov ecx, dword [ebx + 0x4b8]
push ecx
mov dword [ebx + 0x82d14], eax
call esi
push 0xc8f0f0
push ebp
push ebp
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [ebx + 0x4b8], eax
lea edi, [ebx + 0x84d8c]
mov ecx, 0x100000
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebx + 0x489644], ebp
mov dword [ebx + 0x489690], 0x12c
mov dword [ebx + 0x489694], ebp
mov dword [ebx + 0x489698], 0x168
mov dword [ebx + 0x48969c], ebp
mov dword [ebx + 0x4896a0], 0x1a4
mov dword [ebx + 0x4896a4], ebp
mov dword [ebx + 0x4896a8], 0x1e0
mov dword [ebx + 0x4896ac], ebp
mov dword [ebx + 0x4896b0], 0x258
mov dword [ebx + 0x4896b4], ebp
mov dword [ebx + 0x4896b8], 0x2d0
mov dword [ebx + 0x4896bc], ebp
mov dword [ebx + 0x4896c0], 0x384
mov dword [ebx + 0x4896c4], ebp
mov dword [ebx + 0x4896c8], 0x438
mov dword [ebx + 0x4896cc], ebp
mov dword [ebx + 0x4896d0], 0x528
mov dword [ebx + 0x4896d4], ebp
mov dword [ebx + 0x4896d8], 0x690
mov dword [ebx + 0x4896dc], ebp
mov dword [ebx + 0x4896e0], 0x7f8
mov dword [ebx + 0x4896e4], ebp
mov dword [ebx + 0x4896e8], 0x960
mov dword [ebx + 0x4896ec], ebp
lea esi, [ebx + 0x4896f0]
mov dword [esp + 0x10], 0xb
lea esp, [esp]
mov edi, 0xc
mov edx, dword [esi - 0x5c]
mov eax, dword [esi - 0x60]
push ebp
push 0xa
push edx
push eax
call fcn.00416510
mov dword [esi], eax
mov dword [esi + 4], edx
add esi, 8
dec edi
jne 0x40d285
dec dword [esp + 0x10]
jne 0x40d280
mov esi, dword [ebx + 0x4a7f34]
mov dword [ebx + 0x489688], ebp
fld dword [esi + 0x1b00]
mov edi, dword [ebx + 0x489688]
fdivr qword [0x42b4c0]
fild qword [esi + 0x40]
fmulp st(1)
call fcn.00416c6c
mov ecx, dword [ebx + edi*8 + 0x489694]
cmp ecx, edx
jg 0x40d2f6
jl 0x40d2e6
mov edx, dword [ebx + edi*8 + 0x489690]
cmp edx, eax
ja 0x40d2f6
inc edi
mov eax, edi
cmp eax, 0x8f
mov dword [ebx + 0x489688], edi
jle 0x40d2b2
fld dword [esi + 0x1b00]
fdivr qword [0x42b4c0]
fild qword [esi + 0x40]
fmulp st(1)
call fcn.00416c6c
push ebp
push 0x2710
push edx
push eax
call fcn.00416950
mov esi, dword [0x43c484]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
fild qword [esp + 0x10]
push 0x42b4ac
push str.Debug.txt
fmul qword [0x42c388]
fstp qword [esp + 0x28]
call fcn.0041648d
fld qword [esp + 0x28]
mov dword [esi], eax
fstp qword [esp]
push str.Duration_of_a_file_sec_
push str._s_lf_n
push eax
call fcn.004163d3
mov eax, dword [esi]
push eax
call fcn.00416382
mov ecx, dword [ebx + 0x4a7f34]
add esp, 0x18
lea edx, [ecx + 0x1af4]
push edx
call fcn.004010f0
mov ecx, edx
mov dword [ebx + 0x489eac], edx
mov edx, dword [ebx + 0x4a7f34]
lea edi, [ebx + 0x489ec0]
push edi
add edx, 0x1af4
push edx
mov dword [ebx + 0x489ea8], eax
mov dword [ebx + 0x489eb0], eax
mov dword [ebx + 0x489eb4], ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebx + 0x489ece]
movzx ecx, word [ebx + 0x489ecc]
movzx edx, word [ebx + 0x489eca]
push eax
movzx eax, word [ebx + 0x489ec8]
push ecx
movzx ecx, word [edi]
push edx
movzx edx, word [ebx + 0x489ec2]
push eax
movzx eax, word [ebx + 0x489ec6]
sub ecx, 0x7d0
push ecx
push edx
push eax
lea esi, [ebx + 0x48a6f0]
push str.Sys.Time_of_beginning__3h___02d._02d._02d__02d:_02d:_02d__03d
push esi
call fcn.00416b5d
mov ecx, dword [0x43c484]
push 0x42b4ac
push str.Debug.txt
mov dword [esp + 0x3c], ecx
call fcn.0041648d
mov edx, dword [esp + 0x3c]
push esi
push 0x42b49c
push eax
mov dword [edx], eax
call fcn.004163d3
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
push ecx
call fcn.00416382
mov eax, dword [ebx + 0x489688]
add esp, 0x3c
cmp eax, 0x90
jge 0x40d537
jmp 0x40d450
xor ebp, ebp
jmp 0x40d450
mov eax, dword [ebx + 0x489688]
mov edx, dword [ebx + eax*8 + 0x489694]
mov eax, dword [ebx + eax*8 + 0x489690]
push ebp
push 6
push edx
push eax
call fcn.00416950
mov ebp, eax
mov dword [ebx + 0x489e90], eax
mov eax, edx
push eax
mov eax, dword [ebx + 0x489eac]
push ebp
push eax
mov eax, dword [ebx + 0x489ea8]
push eax
mov dword [ebx + 0x489e94], edx
call fcn.00416950
mov ecx, dword [ebx + 0x489e94]
push ecx
push ebp
push edx
push eax
call fcn.00416510
push 0
mov dword [ebx + 0x489e98], eax
mov eax, dword [ebx + 0x489e94]
push 6
push eax
push ebp
mov dword [ebx + 0x489e9c], edx
call fcn.00416510
mov ebp, dword [ebx + 0x489e98]
mov ecx, dword [ebx + 0x489e9c]
add eax, ebp
mov dword [ebx + 0x489ea0], eax
mov eax, dword [ebx + 0x4a7f34]
adc edx, ecx
mov dword [ebx + 0x489ea4], edx
fld dword [eax + 0x1b00]
fdivr qword [0x42b4c0]
fild qword [eax + 0x40]
fmulp st(1)
call fcn.00416c6c
mov ebp, dword [ebx + 0x489ea8]
mov ecx, dword [ebx + 0x489eac]
add eax, ebp
adc edx, ecx
mov ecx, dword [ebx + 0x489ea4]
cmp ecx, edx
jg 0x40d535
jl 0x40d51d
mov edx, dword [ebx + 0x489ea0]
cmp edx, eax
jae 0x40d535
mov eax, dword [ebx + 0x489688]
inc eax
cmp eax, 0x90
mov dword [ebx + 0x489688], eax
jl 0x40d446
xor ebp, ebp
mov eax, dword [ebx + 0x489688]
push ebp
mov dword [ebx + 0x48968c], eax
mov ecx, dword [ebx + eax*8 + 0x489694]
mov edx, dword [ebx + eax*8 + 0x489690]
push 0x989680
push ecx
push edx
call fcn.00416950
mov dword [esp + 0x18], eax
mov eax, dword [0x43c484]
push 0x42b4ac
push str.Debug.txt
mov dword [esp + 0x18], eax
call fcn.0041648d
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov ecx, dword [esp + 0x20]
push ecx
push ecx
push str.Display_range_sec_
push str._s_d__x__n
push eax
call fcn.004163d3
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
push eax
call fcn.00416382
mov ecx, dword [ebx + 0x489e98]
mov edx, dword [ebx + 0x489e9c]
mov dword [esp + 0x48], ecx
mov eax, ecx
add esp, 0x20
mov cl, 0x20
call fcn.00417920
push edi
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebx + 0x489ece]
movzx ecx, word [ebx + 0x489ecc]
movzx edx, word [ebx + 0x489eca]
push eax
movzx eax, word [ebx + 0x489ec8]
push ecx
movzx ecx, word [edi]
push edx
movzx edx, word [ebx + 0x489ec2]
push eax
movzx eax, word [ebx + 0x489ec6]
sub ecx, 0x7d0
push ecx
push edx
push eax
push str.Window_begin_time__02d._02d._02d__02d:_02d:_02d__03d
push esi
call fcn.00416b5d
mov ecx, dword [0x43c484]
push 0x42b4ac
push str.Debug.txt
mov dword [esp + 0x3c], ecx
call fcn.0041648d
mov edx, dword [esp + 0x3c]
push esi
push 0x42b49c
push eax
mov dword [edx], eax
call fcn.004163d3
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
push ecx
call fcn.00416382
mov edx, dword [ebx + 0x489ea0]
mov dword [esp + 0x64], edx
mov eax, edx
mov edx, dword [ebx + 0x489ea4]
add esp, 0x3c
mov cl, 0x20
call fcn.00417920
mov dword [esp + 0x2c], eax
push edi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ecx, word [ebx + 0x489ece]
movzx edx, word [ebx + 0x489ecc]
movzx eax, word [ebx + 0x489eca]
push ecx
movzx ecx, word [ebx + 0x489ec8]
push edx
movzx edx, word [edi]
push eax
movzx eax, word [ebx + 0x489ec2]
push ecx
movzx ecx, word [ebx + 0x489ec6]
sub edx, 0x7d0
push edx
push eax
push ecx
push str.Window_end_time__02d._02d._02d__02d:_02d:_02d__03d
push esi
call fcn.00416b5d
mov edi, dword [0x43c484]
push 0x42b4ac
push str.Debug.txt
call fcn.0041648d
push esi
push 0x42b49c
push eax
mov dword [edi], eax
call fcn.004163d3
mov edx, dword [edi]
push edx
call fcn.00416382
mov eax, dword [ebx + 0x4a7f34]
mov ecx, dword [eax + 0x40]
mov edx, dword [eax + 0x44]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
fild qword [esp + 0x54]
add esp, 0x34
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
fmulp st(1)
fstp qword [esp]
push eax
fild qword [esp + 0x2c]
sub esp, 8
fstp qword [esp]
push 0x42c3e0
push esi
call fcn.00416b5d
mov edi, dword [0x43c484]
push 0x42b4ac
push str.Debug.txt
call fcn.0041648d
push esi
push 0x42b49c
push eax
mov dword [edi], eax
call fcn.004163d3
mov eax, dword [edi]
push eax
call fcn.00416382
mov eax, dword [ebx + 0x489688]
add esp, 0x34
xor esi, esi
cmp eax, ebp
jl 0x40d7ee
lea edi, [ebx + 0x488e40]
mov eax, dword [ebx + 0x4a7f34]
mov ecx, dword [eax + 0x40]
mov edx, dword [eax + 0x44]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0x489688]
sub ecx, esi
fild qword [ebx + ecx*8 + 0x489690]
mov dword [esp + 0x24], edx
fild qword [esp + 0x20]
fmulp st(1)
fld dword [eax + 0x1b00]
fdivr qword [0x42b4c0]
fild qword [eax + 0x40]
fmulp st(1)
call fcn.00416c6c
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
fild qword [esp + 0x10]
fdivp st(1)
call fcn.00416c6c
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
fild qword [esp + 0x18]
fst qword [edi]
fcomp qword [0x42c3d8]
fnstsw ax
test ah, 5
jnp 0x40d7ee
mov eax, dword [ebx + 0x489688]
inc esi
add edi, 8
cmp esi, eax
jle 0x40d773
mov eax, dword [ebx + 0x4a7f34]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x40]
mov eax, dword [eax + 0x2c]
lea edi, [ebx + 0x488e40]
push edi
push esi
lea esi, [ebx + 0x489ee0]
push esi
lea esi, [ebx + 0x84d8c]
push esi
push edx
push ecx
push eax
mov ecx, ebx
call fcn.00414940
lea edx, [ebx + 0x84588]
mov eax, 0xe0e0
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov edi, edx
mov ecx, 0x20
lea esi, [esp + 0x30]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0xff
mov dword [esp + 0x38], 0xc000
mov dword [esp + 0x3c], 0xff0000
mov dword [esp + 0x40], 0x202020
mov dword [esp + 0x44], 0x2828
mov dword [esp + 0x48], 0x280028
mov dword [esp + 0x4c], 0x282800
mov dword [esp + 0x50], 0x404040
mov dword [esp + 0x54], 0x5050
mov dword [esp + 0x58], 0x500050
mov dword [esp + 0x5c], 0x505000
mov dword [esp + 0x60], 0x606060
mov dword [esp + 0x64], 0x6464
mov dword [esp + 0x68], 0x640064
mov dword [esp + 0x6c], 0x646400
mov dword [esp + 0x70], 0x808080
mov dword [esp + 0x74], 0x8080
mov dword [esp + 0x78], 0x800080
mov dword [esp + 0x7c], 0x808000
mov dword [esp + 0x80], 0xa0a0a0
mov dword [esp + 0x84], 0xa0a0
mov dword [esp + 0x88], 0xa000a0
mov dword [esp + 0x8c], 0xa0a000
mov dword [esp + 0x90], 0xc0c0c0
mov dword [esp + 0x94], 0xc0c0
mov dword [esp + 0x98], 0xc000c0
mov dword [esp + 0x9c], 0xc0c000
mov dword [esp + 0xa0], 0xe0e0e0
mov dword [esp + 0xac], 0xe0e000
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x84988]
mov eax, 1
mov ecx, 0x100
mov edi, esi
rep stosd dword es:[edi], eax
push esi
lea eax, [ebx + 0x48b1f0]
push eax
push edx
lea ecx, [ebx + 0x48b5fc]
push ecx
mov ecx, dword [ebx + 0x4a7f34]
call fcn.00401590
push esi
lea eax, [ebx + 0x84588]
push eax
mov ecx, ebx
call fcn.004129a0
mov edx, dword [ebx + 0x4a7f34]
mov eax, dword [edx + 0x2c]
xor edi, edi
cmp eax, ebp
jle 0x40da21
lea eax, [ebx + 0x83580]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], eax
lea esi, [ebx + 0x48b608]
mov ecx, dword [esi - 0x407080]
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
mov dword [esi - 0x418], 1
mov edx, dword [ebx + 0x82d28]
fld dword [ecx + edx]
push ebp
fstp qword [eax + 0x800]
mov edx, dword [ebx + 0x82d28]
fld dword [ecx + edx + 4]
push edi
mov ecx, ebx
fstp qword [eax]
call fcn.00413570
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, 8
add ecx, eax
add edx, eax
mov eax, dword [ebx + 0x4a7f34]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x2c]
inc edi
add esi, 4
cmp edi, ecx
mov dword [esp + 0x10], edx
jl 0x40d9b2
mov ecx, ebx
mov dword [ebx + 0x8355c], ebp
call fcn.00412a80
mov edx, dword [ebx + 0x82d20]
push ebp
lea ecx, [ebx + 0x24e4]
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0xc0
call fcn.004242a4
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebp
mov dword [esp + 0xbc], ebp
je 0x40da78
mov edx, dword [ebx + 0x82d20]
lea ecx, [ebx + 0x824f4]
push ecx
push 0x31
push edx
mov ecx, eax
call fcn.004039d0
jmp 0x40da7a
xor eax, eax
or esi, 0xffffffff
push 0xc0
mov dword [esp + 0xc0], esi
mov dword [ebx + 0x4a7f38], eax
call fcn.004242a4
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebp
mov dword [esp + 0xbc], 1
je 0x40dac3
mov edx, dword [ebx + 0x82d20]
lea ecx, [ebx + 0x824f4]
push ecx
push 0x32
push edx
mov ecx, eax
call fcn.004039d0
jmp 0x40dac5
xor eax, eax
push 0xb8
mov dword [esp + 0xc0], esi
mov dword [ebx + 0x4a7f3c], eax
call fcn.004242a4
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebp
mov dword [esp + 0xbc], 2
je 0x40db0b
mov edx, dword [ebx + 0x82d20]
lea ecx, [ebx + 0x824f4]
push ecx
push 0x31
push edx
mov ecx, eax
call fcn.00403e10
jmp 0x40db0d
xor eax, eax
push 0xb8
mov dword [esp + 0xc0], esi
mov dword [ebx + 0x4a7f40], eax
call fcn.004242a4
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebp
mov dword [esp + 0xbc], 3
je 0x40db59
mov edx, dword [ebx + 0x82d20]
lea ecx, [ebx + 0x824f4]
push ecx
push 0x32
push edx
mov ecx, eax
call fcn.00403e10
mov dword [ebx + 0x4a7f44], eax
jmp 0x40db5f
mov dword [ebx + 0x4a7f44], ebp
mov ecx, dword [esp + 0xb4]
pop edi
mov dword [ebx + 0x4a7f30], 0x42480000
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret