Function at 0x401342
Capabilities:
Encrypt data using rc4 ksa
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x446b0c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x408]
push eax
mov esi, ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.0040124b
push ebx
lea edi, [esi + 0x48]
push 0x200
push edi
call fcn.0042074b
add esp, 0xc
xor ebx, ebx
push ebx
push 0x20
push 3
push ebx
push ebx
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x4013a4
xor eax, eax
jmp 0x4022e9
lea ecx, [esi + 0x4fe4]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x3cc]
push ecx
push 0x20
lea eax, [esi + 0x448]
push eax
push dword [esi + 0x24]
mov dword [esi + 0x20], ebx
call edi
mov eax, dword [ebp - 0x3cc]
add dword [esi + 0x20], eax
push 9
lea eax, [esi + 0x448]
push str.ADCLABFFS
push eax
call fcn.0041ff35
add esp, 0xc
test eax, eax
je 0x401401
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40139d
push ebx
lea eax, [ebp - 0x3cc]
push eax
push 0x34
lea eax, [esi + 0x468]
push eax
push dword [esi + 0x24]
call edi
fld qword [esi + 0x490]
mov eax, dword [ebp - 0x3cc]
fstp dword [esi + 0x4ff0]
add dword [esi + 0x20], eax
mov eax, dword [esi + 0x20]
movsx ecx, byte [esi + 0x498]
push eax
push str._File_Head_length_
mov dword [esi + 0x38], ecx
call fcn.0040109f
mov eax, dword [esi + 0x38]
dec eax
je 0x401a20
sub eax, 5
jne 0x401c0c
push ebx
lea eax, [ebp - 0x3cc]
push eax
push 0x66
lea eax, [esi + 0x1918]
push eax
push dword [esi + 0x24]
mov dword [esi + 0x30], 1
call edi
mov eax, dword [ebp - 0x3cc]
add dword [esi + 0x20], eax
movzx eax, byte [esi + 0x193c]
and eax, 4
push eax
push str.2_channel_mode
call fcn.0040109f
push ebx
lea eax, [ebp - 0x3cc]
push eax
push 0x126
lea eax, [esi + 0x197e]
push eax
push dword [esi + 0x24]
call edi
movsx ecx, byte [esi + 0x193d]
mov eax, dword [ebp - 0x3cc]
add dword [esi + 0x20], eax
mov eax, ecx
cdq
idiv dword [esi + 0x30]
test byte [esi + 0x193c], 4
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x34], eax
je 0x4014d6
lea eax, [ecx + ecx]
mov dword [esi + 0x2c], eax
cmp dword [esi + 0x2c], ebx
mov dword [ebp - 0x3c8], ebx
jle 0x401632
lea eax, [esi + 0x53f8]
mov dword [ebp - 0x3d0], eax
lea eax, [esi + 0x193e]
mov dword [ebp - 0x3bc], eax
lea ecx, [esi + 0x4f0]
mov eax, dword [ebp - 0x3c8]
mov edx, dword [ebp - 0x3bc]
inc eax
mov dword [ebp - 0x3d4], eax
mov dword [ecx], eax
movzx eax, word [edx]
test al, al
je 0x401527
inc eax
and eax, 0xff
mov dword [ecx], eax
test byte [esi + 0x193c], 4
fld dword [esi + 0x1a1c]
fstp dword [ebp - 0x3c4]
je 0x4015af
mov eax, dword [ebp - 0x3c8]
cdq
sub eax, edx
sar eax, 1
lea edx, [esi + eax*2 + 0x193e]
mov eax, dword [ebp - 0x3c8]
and eax, 0x80000001
mov dword [ebp - 0x3c0], edx
jns 0x401566
dec eax
or eax, 0xfffffffe
inc eax
movzx edx, byte [edx]
and edx, 0xff
cmp eax, ebx
lea edx, [eax + edx*2 + 1]
mov dword [ecx], edx
mov edx, dword [ebp - 0x3c0]
jne 0x40158b
mov dl, byte [edx + 1]
and dl, 3
movsx dx, dl
jmp 0x401596
mov dx, word [edx]
sar dx, 0xb
and dx, 3
movzx edx, dx
mov dword [ebp - 0x3c0], edx
mov edx, dword [ebp - 0x3d0]
mov dword [edx], eax
mov eax, dword [ebp - 0x3c0]
jmp 0x4015c3
mov al, byte [edx + 1]
mov edx, dword [ebp - 0x3d0]
and al, 3
movsx ax, al
movzx eax, ax
mov dword [edx], ebx
fld dword [ebp - 0x3c4]
movzx eax, ax
mov edx, dword [esi + eax*4 + 0x19ac]
test edx, edx
fild dword [esi + eax*4 + 0x19ac]
jge 0x4015e4
fadd dword [0x441770]
fdivp st(1)
mov edx, dword [ebp - 0x3d0]
add dword [ebp - 0x3bc], 2
add dword [ebp - 0x3d0], 4
mov dword [edx - 0x400], eax
mov eax, dword [ebp - 0x3d4]
add ecx, 0x14
mov dword [ebp - 0x3c8], eax
fstp dword [ebp - 0x3c4]
fld dword [ebp - 0x3c4]
fchs
fstp qword [ecx - 0x10]
fld dword [ebp - 0x3c4]
fstp qword [ecx - 8]
cmp eax, dword [esi + 0x2c]
jl 0x401503
cmp dword [esi + 0x2c], ebx
mov dword [ebp - 0x3c4], ebx
jle 0x4016af
lea eax, [esi + 0x4ff8]
mov dword [ebp - 0x3bc], eax
lea ebx, [esi + 0x193e]
movzx eax, word [ebx]
mov ecx, dword [ebp - 0x3bc]
push dword [ecx]
movzx eax, ax
mov ecx, eax
shr ecx, 0xb
and ecx, 3
push ecx
mov ecx, eax
shr ecx, 8
and ecx, 3
push ecx
and eax, 0xff
push eax
lea eax, [ebp - 0x208]
push str.Chan._02d_K1_d_K2_d_NGain_d
push eax
call fcn.0040307c
add esp, 0x18
lea eax, [ebp - 0x208]
push eax
call fcn.00401000
inc dword [ebp - 0x3c4]
mov eax, dword [ebp - 0x3c4]
add dword [ebp - 0x3bc], 4
inc ebx
inc ebx
cmp eax, dword [esi + 0x2c]
jl 0x40164f
push str.Kdev
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0042074b
lea eax, [ebp - 0x1fe]
add esp, 0xc
mov dword [ebp - 0x3bc], eax
lea ebx, [esi + 0x19a8]
mov dword [ebp - 0x3c0], 5
push dword [ebx]
push str.__5u
push 5
push dword [ebp - 0x3bc]
call fcn.0041fbb1
add dword [ebp - 0x3bc], 0xc
add esp, 0x10
add ebx, 4
dec dword [ebp - 0x3c0]
jne 0x4016e4
lea eax, [ebp - 0x208]
push eax
call fcn.00401000
fld dword [esi + 0x1a1c]
push ecx
push ecx
fstp qword [esp]
lea eax, [ebp - 0x208]
push str.ADC_Range____8.3f
push eax
call fcn.0040307c
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call fcn.00401000
push str.K1cal
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0042074b
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x3c4], eax
lea eax, [esi + 0x19d0]
add esp, 0xc
mov dword [ebp - 0x3bc], eax
mov dword [ebp - 0x3c0], 5
mov ebx, str.__8.3f
mov eax, dword [ebp - 0x3bc]
fld dword [eax]
push ecx
push ecx
fstp qword [esp]
push ebx
push 8
push dword [ebp - 0x3c4]
call fcn.0041fbb1
add dword [ebp - 0x3bc], 4
add dword [ebp - 0x3c4], 0x10
add esp, 0x14
dec dword [ebp - 0x3c0]
jne 0x401784
lea eax, [ebp - 0x208]
push eax
call fcn.00401000
push str.B1cal
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0042074b
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x3c4], eax
lea eax, [esi + 0x19bc]
add esp, 0xc
mov dword [ebp - 0x3bc], eax
mov dword [ebp - 0x3c0], 5
mov eax, dword [ebp - 0x3bc]
fld dword [eax]
push ecx
push ecx
fstp qword [esp]
push ebx
push 8
push dword [ebp - 0x3c4]
call fcn.0041fbb1
add dword [ebp - 0x3bc], 4
add dword [ebp - 0x3c4], 0x10
add esp, 0x14
dec dword [ebp - 0x3c0]
jne 0x4017ff
lea eax, [ebp - 0x208]
push eax
call fcn.00401000
push str.K2cal
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0042074b
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x3c4], eax
lea eax, [esi + 0x19f8]
add esp, 0xc
mov dword [ebp - 0x3bc], eax
mov dword [ebp - 0x3c0], 5
mov eax, dword [ebp - 0x3bc]
fld dword [eax]
push ecx
push ecx
fstp qword [esp]
push ebx
push 8
push dword [ebp - 0x3c4]
call fcn.0041fbb1
add dword [ebp - 0x3bc], 4
add dword [ebp - 0x3c4], 0x10
add esp, 0x14
dec dword [ebp - 0x3c0]
jne 0x40187a
lea eax, [ebp - 0x208]
push eax
call fcn.00401000
push str.B2cal
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.0042074b
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x3c4], eax
lea eax, [esi + 0x19e4]
add esp, 0xc
mov dword [ebp - 0x3bc], eax
mov dword [ebp - 0x3c0], 5
mov eax, dword [ebp - 0x3bc]
fld dword [eax]
push ecx
push ecx
fstp qword [esp]
push ebx
push 8
push dword [ebp - 0x3c4]
call fcn.0041fbb1
add dword [ebp - 0x3bc], 4
add dword [ebp - 0x3c4], 0x10
add esp, 0x14
dec dword [ebp - 0x3c0]
jne 0x4018f5
lea eax, [ebp - 0x208]
push eax
call fcn.00401000
push 0x2000
lea ebx, [esi + 0x5804]
push 0xff
push ebx
call fcn.004204c0
add esp, 0xc
push 0
lea eax, [ebp - 0x3cc]
push eax
push 0xc
push ebx
push dword [esi + 0x24]
call edi
push 8
push str.ADCBLOCK
push ebx
call fcn.0041ff35
add esp, 0xc
test eax, eax
je 0x401987
push 1
push 0
push 0xfffffffffffffff4
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x401c0c
mov dword [esi + 0x7804], 0xc
mov eax, dword [esi + 0x580c]
mov dword [esi + 0x7818], eax
test byte [esi + 0x580c], 2
je 0x4019df
push 0
lea eax, [ebp - 0x3cc]
push eax
mov eax, dword [esi + 0x2c]
lea eax, [eax*4 + 4]
push eax
lea eax, [esi + 0x5810]
push eax
push dword [esi + 0x24]
call edi
mov eax, dword [esi + 0x2c]
lea eax, [eax*4 + 4]
add dword [esi + 0x7804], eax
mov eax, dword [esi + 0x7804]
add dword [esi + 0x20], eax
test byte [esi + 0x580c], 4
je 0x401c0c
push 0
lea eax, [ebp - 0x3cc]
push eax
mov eax, dword [esi + 0x2c]
shl eax, 2
push eax
mov eax, dword [esi + 0x7804]
lea eax, [esi + eax + 0x5804]
push eax
push dword [esi + 0x24]
call edi
mov eax, dword [esi + 0x2c]
shl eax, 2
add dword [esi + 0x7804], eax
jmp 0x401c09
mov eax, dword [esi + 0x48c]
mov ecx, eax
and ecx, 0x1ff
push ecx
sar eax, 0x10
push 0x440140
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x48c], ecx
call fcn.0040109f
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x401a5a
push eax
push 0x440150
call fcn.0040109f
cmp dword [esi + 0x30], ebx
jne 0x401a66
mov dword [esi + 0x30], 1
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cdq
idiv ecx
cmp ecx, ebx
mov dword [esi + 0x34], eax
je 0x401a81
push eax
push 0x440168
call fcn.0040109f
movsx eax, byte [esi + 0x49b]
push eax
push str.m_mode
call fcn.0040109f
xor ecx, ecx
cmp dword [esi + 0x2c], ebx
jle 0x401abd
lea eax, [esi + 0x4f4]
fld qword [0x4417a8]
inc ecx
fstp qword [eax]
mov dword [eax - 4], ecx
fld qword [0x4416f8]
add eax, 0x14
fstp qword [eax - 0xc]
cmp ecx, dword [esi + 0x2c]
jl 0x401aa0
push ebx
lea eax, [ebp - 0x3cc]
push eax
push 0x18
lea eax, [ebp - 0x308]
push eax
push dword [esi + 0x24]
call edi
push 1
push ebx
push 0xffffffffffffffe8
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0xe
lea eax, [ebp - 0x308]
push str.SAMPLES_RECORD
push eax
call fcn.0041ff35
add esp, 0xc
test eax, eax
je 0x401c0c
push ebx
lea eax, [ebp - 0x3cc]
push eax
push 0x34
lea eax, [esi + 0x49c]
push eax
push dword [esi + 0x24]
call edi
mov eax, dword [ebp - 0x3cc]
add dword [esi + 0x20], eax
push ebx
lea eax, [ebp - 0x3cc]
push eax
push 0x20
lea eax, [esi + 0x4d0]
push eax
push dword [esi + 0x24]
call edi
mov eax, dword [ebp - 0x3cc]
add dword [esi + 0x20], eax
cmp dword [esi + 0x2c], ebx
mov dword [ebp - 0x3c8], ebx
jle 0x401b8a
lea eax, [esi + 0x4f0]
mov dword [ebp - 0x3bc], eax
push ebx
lea eax, [ebp - 0x3cc]
push eax
push 0x14
push dword [ebp - 0x3bc]
push dword [esi + 0x24]
call edi
mov eax, dword [ebp - 0x3cc]
add dword [esi + 0x20], eax
inc dword [ebp - 0x3c8]
mov eax, dword [ebp - 0x3c8]
add dword [ebp - 0x3bc], 0x14
cmp eax, dword [esi + 0x2c]
jl 0x401b54
push 0x2000
lea eax, [esi + 0x5804]
push 0xff
push eax
call fcn.004204c0
mov ecx, dword [esi + 0x48c]
imul ecx, ecx, 0x14
mov eax, ecx
cdq
add esp, 0xc
cmp edx, dword [esi + 0x4ec]
jg 0x401bed
jl 0x401bc1
cmp eax, dword [esi + 0x4e8]
jae 0x401bed
mov eax, dword [esi + 0x4e8]
sub eax, ecx
push ebx
lea ecx, [ebp - 0x3cc]
push ecx
push eax
mov dword [esi + 0x7804], eax
lea eax, [esi + 0x5804]
push eax
push dword [esi + 0x24]
call edi
mov eax, dword [ebp - 0x3cc]
add dword [esi + 0x20], eax
push ebx
lea eax, [ebp - 0x3cc]
push eax
push 0x28
lea eax, [esi + 0x18f0]
push eax
push dword [esi + 0x24]
call edi
mov eax, dword [ebp - 0x3cc]
add dword [esi + 0x20], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x3cc]
push eax
push 0x20
lea eax, [esi + 0x1ac4]
push eax
push dword [esi + 0x24]
call edi
mov eax, dword [ebp - 0x3cc]
add dword [esi + 0x20], eax
lea edi, [esi + 0x4fdc]
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0x24]
mov dword [esi + 0x4fd8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push dword [esi + 0x24]
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x28], ebx
jne 0x401c83
push 0xe0
call fcn.0041482f
pop ecx
push eax
mov eax, 0x400
push eax
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40139d
mov eax, dword [edi]
or dword [esi + 0x18], 0xffffffff
push 1
cdq
push 0
push edx
push eax
call fcn.00424950
mov edi, eax
mov eax, dword [esi + 0x4fd8]
xor ecx, ecx
add edi, eax
mov ebx, edx
adc ebx, ecx
cmp dword [esi + 0x38], 1
jne 0x401cc6
mov eax, dword [esi + 0x20]
mov edx, edi
sub edx, eax
push ecx
mov eax, ebx
push 4
sbb eax, ecx
push eax
push edx
call fcn.00424990
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov eax, dword [esi + 0x20]
xor ecx, ecx
mov edx, edi
sub edx, eax
mov eax, ebx
sbb eax, ecx
cmp dword [esi + 0x38], 1
mov dword [ebp - 0x3e0], edx
mov dword [ebp - 0x3dc], eax
fild qword [ebp - 0x3e0]
jne 0x401cf3
fmul qword [0x4417a0]
jmp 0x401cf9
fmul qword [0x441658]
push ecx
push ecx
fstp qword [esp]
lea eax, [ebp - 0x308]
push str._.0lf_counts_in_a_file_incl._8_bytes_numsect_in_case_2_byte_counts_
push eax
call fcn.00403097
add esp, 0x10
lea eax, [ebp - 0x308]
push eax
call fcn.0040106a
cmp dword [esi + 0x38], 6
jne 0x4022cc
movzx eax, byte [esi + 0x1a9e]
push eax
movzx eax, byte [esi + 0x1a9f]
push eax
movzx eax, byte [esi + 0x1aa0]
push eax
movzx eax, byte [esi + 0x1aa3]
push eax
movzx eax, byte [esi + 0x1aa2]
push eax
movzx eax, byte [esi + 0x1aa1]
push eax
lea eax, [ebp - 0x208]
push str.Date_from_SD_file___02u._02u._02u_nTime_from_SD_file__02u:_02u:_02u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x208]
push eax
call fcn.00401000
push 0
push 0x100
push ebx
push edi
call fcn.00424990
add eax, 0xfffffffe
mov dword [esi + 0x57f8], eax
xor edi, edi
dec eax
mov dword [ebp - 0x3c8], eax
push edi
mov eax, esi
mov dword [ebp - 0x3bc], edi
call fcn.00402373
mov ebx, dword [eax]
cmp ebx, 0xffffffff
mov dword [ebp - 0x3d4], ebx
jne 0x401dbe
push 0xe1
jmp 0x401c68
mov eax, dword [ebp - 0x3c8]
shl eax, 7
push eax
mov eax, esi
call fcn.00402373
test ebx, ebx
mov eax, dword [eax]
jne 0x401de6
cmp eax, 0xffffffff
je 0x401de6
mov ebx, dword [ebp - 0x3c8]
inc ebx
jmp 0x401e89
cmp dword [ebp - 0x3c8], 0x10
jbe 0x401e42
mov eax, dword [ebp - 0x3c8]
lea ebx, [eax + edi]
shr ebx, 1
mov eax, ebx
shl eax, 7
push eax
mov eax, esi
call fcn.00402373
mov eax, dword [eax]
cmp eax, 0xffffffff
mov dword [ebp - 0x3c0], eax
je 0x401e2b
mov eax, edi
shl eax, 7
push eax
mov eax, esi
call fcn.00402373
mov ecx, dword [ebp - 0x3c0]
cmp ecx, dword [eax]
jae 0x401e33
mov dword [ebp - 0x3c8], ebx
jmp 0x401e35
mov edi, ebx
mov eax, dword [ebp - 0x3c8]
sub eax, edi
cmp eax, 0x10
ja 0x401def
lea ebx, [edi + 1]
shl edi, 7
push edi
mov eax, esi
call fcn.00402373
mov edi, dword [eax]
jmp 0x401e78
mov eax, ebx
shl eax, 7
push eax
mov eax, esi
call fcn.00402373
mov eax, dword [eax]
mov edx, dword [esi + 0x57f8]
mov ecx, eax
sub ecx, edi
shr edx, 1
cmp ecx, edx
ja 0x401e80
cmp eax, edi
jb 0x401e80
inc ebx
cmp ebx, dword [ebp - 0x3c8]
jbe 0x401e54
cmp dword [ebp - 0x3d4], 0
jne 0x401eb6
and dword [ebp - 0x3e0], 0
and dword [ebp - 0x3dc], 0
dec ebx
mov ecx, 0x80
mov eax, ebx
mul ecx
push edx
push eax
mov eax, esi
call fcn.004023b1
mov edi, dword [eax]
inc edi
and dword [ebp - 0x3c8], 0
jmp 0x401f2c
lea eax, [ebx - 1]
shl eax, 7
push eax
mov eax, esi
call fcn.00402373
mov edi, dword [eax]
mov eax, ebx
shl eax, 7
push eax
mov eax, esi
call fcn.00402373
mov eax, dword [eax]
mov dword [ebp - 0x3bc], eax
imul eax, eax, 0x7c
xor edx, edx
div dword [esi + 0x2c]
test eax, eax
mov dword [ebp - 0x3c0], eax
fild dword [ebp - 0x3c0]
jge 0x401ef9
fadd qword [0x4416b8]
fld dword [esi + 0x4ff0]
fdivr qword [0x4416b0]
fmulp st(1)
call fcn.004248d6
sub edi, dword [ebp - 0x3bc]
mov dword [ebp - 0x3c8], ebx
mov ebx, dword [esi + 0x57f8]
inc edi
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 0x3dc], edx
dec ebx
mov eax, edi
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, edi
shl ecx, 2
push ecx
push 0xff
push eax
mov dword [esi + 8], eax
call fcn.004204c0
lea eax, [edi - 1]
add esp, 0xc
cmp ebx, eax
jne 0x401f84
xor ecx, ecx
mov eax, dword [ebp - 0x3c8]
add eax, ecx
xor edx, edx
div dword [esi + 0x57f8]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edx
inc ecx
cmp ecx, ebx
jbe 0x401f64
jmp 0x4020ba
mov eax, dword [esi]
push eax
push 0x4071c7
push eax
push str.PERSENT
push dword [0x44b3b0]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 0xde
mov dword [esi + 4], eax
call fcn.0041482f
pop ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
and dword [ebp - 0x3c4], 0
and dword [ebp - 0x3d0], 0
lea eax, [ebx + 1]
test eax, eax
jbe 0x4020a4
lea eax, [ebx + 1]
test eax, eax
mov dword [ebp - 0x3c0], eax
fild dword [ebp - 0x3c0]
jge 0x401fe8
fadd qword [0x4416b8]
fstp qword [ebp - 0x3e8]
mov eax, dword [ebp - 0x3d0]
fild dword [ebp - 0x3d0]
test eax, eax
jge 0x402004
fadd qword [0x4416b8]
fdiv qword [ebp - 0x3e8]
fmul qword [0x4416e0]
call fcn.004248a0
cmp eax, dword [ebp - 0x3c4]
mov dword [ebp - 0x3c0], eax
je 0x402054
push eax
push 1
push 0x400
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x3c0]
push 1
mov dword [ebp - 0x3c4], eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
mov ecx, dword [ebp - 0x3c8]
mov eax, dword [ebp - 0x3d0]
add eax, ecx
xor edx, edx
div dword [esi + 0x57f8]
mov eax, esi
mov dword [ebp - 0x3c0], edx
shl edx, 7
push edx
call fcn.00402373
mov eax, dword [eax]
sub eax, dword [ebp - 0x3bc]
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 0x3c0]
inc dword [ebp - 0x3d0]
mov dword [ecx + eax*4], edx
lea eax, [ebx + 1]
cmp dword [ebp - 0x3d0], eax
jb 0x401fee
push 0x64
push 1
push 0x400
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 4], 0
mov eax, dword [esi + 0x57f8]
push eax
push eax
lea eax, [ebp - 0x208]
push str.Number_of_256_bytes_sectors_in_SD_file__10u__08x_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call fcn.00401000
push edi
push edi
lea eax, [ebp - 0x208]
push str.Number_of_data_sectors_include_holes___10u__08x_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call fcn.00401000
cmp dword [ebp - 0x3d4], 0
jne 0x40211b
lea eax, [ebx + 1]
push eax
push eax
push str.Number_of_data_sectors_exclude_holes__10u__08x_
jmp 0x40212c
push dword [ebp - 0x3c8]
push dword [ebp - 0x3c8]
push str.The_first_sector_of_cyclebuffer__10u__08x_
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call fcn.00401000
mov eax, edi
mov ecx, 0x100
mul ecx
mov ebx, eax
mov eax, dword [esi + 8]
mov dword [esi + 0x57fc], edi
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x3e4], edx
je 0x402176
mov ecx, dword [esi + 0x2c]
imul eax, eax, 0x7c
xor edx, edx
div ecx
sub ecx, edx
jmp 0x402178
xor ecx, ecx
cmp ecx, dword [esi + 0x2c]
lea eax, [esi + 0x5800]
mov dword [eax], ecx
jne 0x402188
and dword [eax], 0
push 0
push 2
push dword [ebp - 0x3e4]
push ebx
call fcn.00424990
push 0
mov ebx, eax
mov edi, 0x80
push edi
mov eax, edx
push eax
push ebx
mov dword [esi + 0x44], edx
call fcn.00430bf0
push 0
push edi
push dword [esi + 0x44]
mov dword [ebp - 0x3d4], eax
push ebx
call fcn.00424990
push 0x7c
pop ecx
mul ecx
cmp dword [ebp - 0x3d4], 4
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
jbe 0x4021e4
mov eax, dword [ebp - 0x3d4]
add eax, 0xfffffffc
add dword [esi + 0x40], eax
adc dword [esi + 0x44], 0
push 0x10
xor edi, edi
lea eax, [ebp - 0x3f8]
push edi
push eax
call fcn.004204c0
movzx ax, byte [esi + 0x1a9e]
mov word [ebp - 0x3ec], ax
movzx ax, byte [esi + 0x1a9f]
mov word [ebp - 0x3ee], ax
movzx ax, byte [esi + 0x1aa0]
mov word [ebp - 0x3f0], ax
movzx ax, byte [esi + 0x1aa1]
mov word [ebp - 0x3f2], ax
movzx ax, byte [esi + 0x1aa2]
mov word [ebp - 0x3f6], ax
movzx ax, byte [esi + 0x1aa3]
add ax, 0x7d0
mov word [ebp - 0x3f8], ax
add esp, 0xc
lea eax, [esi + 0x4fe4]
push eax
lea eax, [ebp - 0x3f8]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 1
push edi
push edi
push dword [esi + 0x4fe8]
call fcn.00424950
mov ebx, eax
mov eax, dword [esi + 0x4fe4]
xor ecx, ecx
add ebx, eax
mov edi, edx
adc edi, ecx
add ebx, dword [ebp - 0x3e0]
lea eax, [ebp - 0x3b8]
adc edi, dword [ebp - 0x3dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov eax, dword [ebp - 0x3b8]
push 0
cdq
push 0x23c34600
push edx
push eax
call fcn.00424950
add ebx, eax
adc edi, edx
mov eax, edi
sar eax, 0x1f
mov dword [esi + 0x4fe8], edi
mov dword [esi + 0x4fe4], ebx
mov eax, dword [esi + 0x2c]
cdq
push edx
push eax
push dword [esi + 0x44]
push dword [esi + 0x40]
call fcn.00424990
mov dword [esi + 0x40], eax
xor eax, eax
inc eax
mov dword [esi + 0x44], edx
mov dword [esi + 0x10], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fba2
leave
ret