Function at 0x4026a0
Capabilities:
Encrypt data using rc4 ksa
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x418
mov eax, dword [0x449238]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
push edi
lea eax, [esp + 0x44]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, esi
call fcn.00401550
mov eax, dword [esp + 0x424]
lea edi, [esi + 0x48]
mov edx, edi
sub edx, eax
jmp 0x4026e0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4026e0
push 0
push 0x20
push 3
push 0
push 0
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x402714
xor eax, eax
jmp 0x4037d5
push ebx
lea ecx, [esi + 0x4fe4]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edx, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x20
lea ebx, [esi + 0x448]
push ebx
push edx
mov dword [esi + 0x20], 0
call edi
mov eax, dword [esp + 0xc]
add dword [esi + 0x20], eax
push 9
push str.ADCLABFFS
push ebx
call fcn.00423dbf
mov ecx, dword [esi + 0x24]
add esp, 0xc
test eax, eax
je 0x402776
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4037d4
push ebp
push 0
lea edx, [esp + 0x14]
push edx
push 0x34
lea eax, [esi + 0x468]
push eax
push ecx
call edi
fld qword [esi + 0x490]
movsx eax, byte [esi + 0x498]
fstp dword [esi + 0x4ff0]
mov edx, dword [esp + 0x10]
add dword [esi + 0x20], edx
mov ebx, dword [esi + 0x20]
push 0x43d5b8
mov dword [esi + 0x38], eax
mov ebp, dword [0x454178]
push str.Debug.txt
call fcn.004236af
push ebx
push ebx
push str._File_Head_length_
push str._s_d__x__n
push eax
mov dword [ebp], eax
call fcn.0042349c
mov ecx, dword [ebp]
push ecx
call fcn.00423420
mov eax, dword [esi + 0x38]
add esp, 0x20
sub eax, 1
je 0x402d2a
sub eax, 5
jne 0x402f15
mov ecx, dword [esi + 0x24]
push eax
lea edx, [esp + 0x14]
push edx
push 0x66
lea eax, [esi + 0x1918]
push eax
push ecx
mov dword [esi + 0x30], 1
call edi
movzx eax, byte [esi + 0x193c]
mov edx, dword [esp + 0x10]
add dword [esi + 0x20], edx
mov ecx, dword [0x454178]
and eax, 4
push eax
push 0x43da14
call fcn.00401360
mov eax, dword [esi + 0x24]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x126
lea edx, [esi + 0x197e]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
add dword [esi + 0x20], ecx
movsx ecx, byte [esi + 0x193d]
mov eax, ecx
cdq
idiv dword [esi + 0x30]
test byte [esi + 0x193c], 4
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x34], eax
je 0x402875
lea edx, [ecx + ecx]
mov dword [esi + 0x2c], edx
xor edi, edi
cmp dword [esi + 0x2c], edi
jle 0x402974
lea ebp, [esi + 0x53f8]
lea ebx, [esi + 0x193e]
lea ecx, [esi + 0x4f0]
lea eax, [edi + 1]
mov dword [esp + 0x20], eax
mov dword [ecx], eax
movzx eax, word [ebx]
test al, al
je 0x4028ac
add eax, 1
and eax, 0xff
mov dword [ecx], eax
test byte [esi + 0x193c], 4
fld dword [esi + 0x1a1c]
fstp dword [esp + 0x14]
je 0x402911
mov eax, edi
cdq
sub eax, edx
sar eax, 1
and edi, 0x80000001
lea eax, [esi + eax*2 + 0x193e]
jns 0x4028da
dec edi
or edi, 0xfffffffe
inc edi
movzx edx, byte [eax]
and edx, 0xff
test edi, edi
lea edx, [edi + edx*2 + 1]
mov dword [ecx], edx
jne 0x4028fe
mov al, byte [eax + 1]
and al, 3
movsx dx, al
movzx eax, dx
mov dword [ebp], edi
jmp 0x402925
mov ax, word [eax]
sar ax, 0xb
and ax, 3
movzx eax, ax
mov dword [ebp], edi
jmp 0x402925
mov dl, byte [ebx + 1]
and dl, 3
movsx ax, dl
movzx eax, ax
mov dword [ebp], 0
fld dword [esp + 0x14]
movzx eax, ax
mov edx, dword [esi + eax*4 + 0x19ac]
test edx, edx
fild dword [esi + eax*4 + 0x19ac]
jge 0x402944
fadd dword [0x43da10]
fdivp st(1)
mov edi, dword [esp + 0x20]
mov dword [ebp - 0x400], eax
add ebx, 2
add ebp, 4
add ecx, 0x14
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
fchs
fstp qword [ecx - 0x10]
fstp qword [ecx - 8]
cmp edi, dword [esi + 0x2c]
jl 0x402892
xor ebx, ebx
cmp dword [esi + 0x2c], ebx
jle 0x4029df
lea ebp, [esi + 0x4ff8]
lea edi, [esi + 0x193e]
movzx eax, word [edi]
mov ecx, dword [ebp]
movzx eax, ax
push ecx
mov edx, eax
shr edx, 0xb
mov ecx, eax
and edx, 3
push edx
shr ecx, 8
and ecx, 3
push ecx
and eax, 0xff
push eax
lea edx, [esp + 0x134]
push str.Chan._02d_K1_d_K2_d_NGain_d
push edx
call fcn.00401270
mov ecx, dword [0x454178]
add esp, 0x18
lea eax, [esp + 0x124]
push eax
call fcn.00401290
add ebx, 1
add edi, 2
add ebp, 4
cmp ebx, dword [esi + 0x2c]
jl 0x402987
xor eax, eax
movzx ecx, word [eax + str.Kdev]
mov word [esp + eax + 0x124], cx
add eax, 2
test cx, cx
jne 0x4029e1
lea ebx, [esp + 0x12e]
lea edi, [esi + 0x19a8]
mov ebp, 5
lea ebx, [ebx]
mov ecx, dword [edi]
push ecx
push str.__5u
push ebx
call fcn.00401270
add esp, 0xc
add edi, 4
add ebx, 0xc
sub ebp, 1
jne 0x402a10
mov ecx, dword [0x454178]
lea edx, [esp + 0x124]
push edx
call fcn.00401290
fld dword [esi + 0x1a1c]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x12c]
push str.ADC_Range____8.3f
push eax
call fcn.00401270
add esp, 0x10
lea ecx, [esp + 0x124]
push ecx
mov ecx, dword [0x454178]
call fcn.00401290
xor eax, eax
jmp 0x402a80
movzx ecx, word [eax + str.K1cal]
mov word [esp + eax + 0x124], cx
add eax, 2
test cx, cx
jne 0x402a80
lea ebx, [esp + 0x130]
lea edi, [esi + 0x19d0]
mov ebp, 5
lea esp, [esp]
fld dword [edi]
sub esp, 8
fstp qword [esp]
push str.__8.3f
push ebx
call fcn.00401270
add esp, 0x10
add edi, 4
add ebx, 0x10
sub ebp, 1
jne 0x402ab0
mov ecx, dword [0x454178]
lea edx, [esp + 0x124]
push edx
call fcn.00401290
xor eax, eax
jmp 0x402af0
movzx ecx, word [eax + str.B1cal]
mov word [esp + eax + 0x124], cx
add eax, 2
test cx, cx
jne 0x402af0
lea ebx, [esp + 0x130]
lea edi, [esi + 0x19bc]
mov ebp, 5
lea esp, [esp]
fld dword [edi]
sub esp, 8
fstp qword [esp]
push str.__8.3f
push ebx
call fcn.00401270
add esp, 0x10
add edi, 4
add ebx, 0x10
sub ebp, 1
jne 0x402b20
mov ecx, dword [0x454178]
lea eax, [esp + 0x124]
push eax
call fcn.00401290
xor eax, eax
jmp 0x402b60
movzx ecx, word [eax + str.K2cal]
mov word [esp + eax + 0x124], cx
add eax, 2
test cx, cx
jne 0x402b60
lea ebx, [esp + 0x130]
lea edi, [esi + 0x19f8]
mov ebp, 5
lea esp, [esp]
fld dword [edi]
sub esp, 8
fstp qword [esp]
push str.__8.3f
push ebx
call fcn.00401270
add esp, 0x10
add edi, 4
add ebx, 0x10
sub ebp, 1
jne 0x402b90
lea ecx, [esp + 0x124]
push ecx
mov ecx, dword [0x454178]
call fcn.00401290
xor eax, eax
jmp 0x402bd0
movzx ecx, word [eax + str.B2cal]
mov word [esp + eax + 0x124], cx
add eax, 2
test cx, cx
jne 0x402bd0
lea ebx, [esp + 0x130]
lea edi, [esi + 0x19e4]
mov ebp, 5
lea esp, [esp]
fld dword [edi]
sub esp, 8
fstp qword [esp]
push str.__8.3f
push ebx
call fcn.00401270
add esp, 0x10
add edi, 4
add ebx, 0x10
sub ebp, 1
jne 0x402c00
mov ecx, dword [0x454178]
lea edx, [esp + 0x124]
push edx
call fcn.00401290
push 0x2000
lea edi, [esi + 0x5804]
push 0xff
push edi
call fcn.004238f0
mov ecx, dword [esi + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push ebp
lea eax, [esp + 0x14]
push eax
push 0xc
push edi
push ecx
call ebx
push 8
push 0x43d5f0
push edi
call fcn.00423dbf
add esp, 0xc
test eax, eax
je 0x402c8a
mov edx, dword [esi + 0x24]
push 1
push ebp
push 0xfffffffffffffff4
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x402f15
mov dword [esi + 0x7804], 0xc
mov eax, dword [esi + 0x580c]
mov dword [esi + 0x7818], eax
test byte [esi + 0x580c], 2
je 0x402ce1
mov edx, dword [esi + 0x2c]
push 0
lea ecx, [esp + 0x14]
push ecx
lea eax, [edx*4 + 4]
mov edx, dword [esi + 0x24]
push eax
lea ecx, [esi + 0x5810]
push ecx
push edx
call ebx
mov eax, dword [esi + 0x2c]
lea ecx, [eax*4 + 4]
add dword [esi + 0x7804], ecx
mov eax, dword [esi + 0x7804]
add dword [esi + 0x20], eax
test byte [esi + 0x580c], 4
je 0x402f15
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x7804]
push 0
add eax, eax
lea edx, [esp + 0x14]
push edx
add eax, eax
push eax
mov eax, dword [esi + 0x24]
lea edx, [esi + ecx + 0x5804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x2c]
add eax, eax
add eax, eax
add dword [esi + 0x7804], eax
add dword [esi + 0x20], eax
jmp 0x402f15
mov eax, dword [esi + 0x48c]
mov ecx, eax
and ecx, 0x1ff
sar eax, 0x10
push ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x48c], ecx
mov ecx, dword [0x454178]
push 0x43d92c
call fcn.00401360
mov eax, dword [esi + 0x30]
test eax, eax
je 0x402d70
mov ecx, dword [0x454178]
push eax
push 0x43d914
call fcn.00401360
cmp dword [esi + 0x30], 0
jne 0x402d7d
mov dword [esi + 0x30], 1
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cdq
idiv ecx
test ecx, ecx
mov dword [esi + 0x34], eax
je 0x402d9e
mov ecx, dword [0x454178]
push eax
push 0x43d8f8
call fcn.00401360
movsx edx, byte [esi + 0x49b]
mov ecx, dword [0x454178]
push edx
push str.m_mode
call fcn.00401360
xor ecx, ecx
cmp dword [esi + 0x2c], ecx
jle 0x402dea
fld qword [0x43d8e8]
lea eax, [esi + 0x4f4]
fld qword [0x43d8e0]
fxch st(1)
add ecx, 1
fst qword [eax]
mov dword [eax - 4], ecx
fxch st(1)
add eax, 0x14
fst qword [eax - 0xc]
cmp ecx, dword [esi + 0x2c]
jl 0x402dcf
fstp st(1)
fstp st(0)
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push 0x18
lea ecx, [esp + 0x330]
push ecx
push edx
call edi
mov eax, dword [esi + 0x24]
push 1
push 0
push 0xffffffffffffffe8
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0xe
lea ecx, [esp + 0x328]
push 0x43d8d0
push ecx
call fcn.00423dbf
add esp, 0xc
test eax, eax
je 0x402f15
mov ecx, dword [esi + 0x24]
push 0
lea edx, [esp + 0x14]
push edx
push 0x34
lea eax, [esi + 0x49c]
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
add dword [esi + 0x20], edx
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push 0x20
lea ecx, [esi + 0x4d0]
push ecx
push edx
call edi
mov eax, dword [esp + 0x10]
add dword [esi + 0x20], eax
xor ebx, ebx
cmp dword [esi + 0x2c], ebx
jle 0x402e99
lea ebp, [esi + 0x4f0]
mov edx, dword [esi + 0x24]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x14
push ebp
push edx
call edi
mov eax, dword [esp + 0x10]
add dword [esi + 0x20], eax
add ebx, 1
add ebp, 0x14
cmp ebx, dword [esi + 0x2c]
jl 0x402e77
push 0x2000
lea ebx, [esi + 0x5804]
push 0xff
push ebx
call fcn.004238f0
mov eax, dword [esi + 0x48c]
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
mov eax, ecx
cdq
add esp, 0xc
cmp edx, dword [esi + 0x4ec]
jg 0x402ef8
jl 0x402ed4
cmp eax, dword [esi + 0x4e8]
jae 0x402ef8
mov eax, dword [esi + 0x4e8]
mov edx, dword [esi + 0x24]
sub eax, ecx
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
push edx
mov dword [esi + 0x7804], eax
call edi
mov eax, dword [esp + 0x10]
add dword [esi + 0x20], eax
mov eax, dword [esi + 0x24]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x28
lea edx, [esi + 0x18f0]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
add dword [esi + 0x20], ecx
mov ecx, dword [esi + 0x24]
push 0
lea edx, [esp + 0x14]
push edx
push 0x20
lea eax, [esi + 0x1ac4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x24]
mov edx, dword [esp + 0x10]
add dword [esi + 0x20], edx
lea edi, [esi + 0x4fdc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 0x24]
push 0
push 0
push 0
push 2
push 0
push ecx
mov dword [esi + 0x4fd8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [esi + 0x24]
push edx
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x28], 0
jne 0x402f9c
push pe_nt_image_headers32
call fcn.00416f80
add esp, 4
push eax
mov eax, dword [esi]
push 0x400
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x4037d3
mov eax, dword [edi]
push 1
cdq
push 0
push edx
push eax
mov dword [esi + 0x18], 0xffffffff
call fcn.00423740
mov ecx, dword [esi + 0x4fd8]
mov ebp, dword [esi + 0x38]
mov ebx, edx
xor edx, edx
mov edi, eax
add edi, ecx
adc ebx, edx
cmp ebp, 1
jne 0x402fe6
mov eax, dword [esi + 0x20]
xor ecx, ecx
mov edx, edi
sub edx, eax
push ecx
mov eax, ebx
push 4
sbb eax, ecx
push eax
push edx
call fcn.00423780
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov ecx, dword [esi + 0x20]
xor edx, edx
mov eax, edi
sub eax, ecx
mov ecx, ebx
sbb ecx, edx
cmp ebp, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
fild qword [esp + 0x28]
jne 0x40300c
fmul qword [0x43d8c8]
jmp 0x403012
fmul qword [0x43d8c0]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x32c]
push str._.0lf_counts_in_a_file_incl._8_bytes_numsect_in_case_2_byte_counts_
push edx
call fcn.00423e7d
mov ebp, dword [0x454178]
push 0x43d5b8
push str.Debug.txt
call fcn.004236af
lea ecx, [esp + 0x33c]
push ecx
push 0x43d5a8
push eax
mov dword [ebp], eax
call fcn.0042349c
mov edx, dword [ebp]
push edx
call fcn.00423420
add esp, 0x28
cmp dword [esi + 0x38], 6
jne 0x4037b2
movzx eax, byte [esi + 0x1a9e]
movzx ecx, byte [esi + 0x1a9f]
movzx edx, byte [esi + 0x1aa0]
push eax
movzx eax, byte [esi + 0x1aa3]
push ecx
movzx ecx, byte [esi + 0x1aa2]
push edx
movzx edx, byte [esi + 0x1aa1]
push eax
push ecx
push edx
lea eax, [esp + 0x13c]
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 ecx, [esp + 0x124]
push ecx
mov ecx, dword [0x454178]
call fcn.00401290
push 0
push 0x100
push ebx
push edi
call fcn.00423780
mov edi, dword [esi + 0x20]
add eax, 0xfffffffe
mov dword [esi + 0x57f8], eax
add eax, 0xffffffff
shr edi, 1
mov dword [esp + 0x14], eax
mov eax, edi
xor ebx, ebx
shr eax, 0x1b
cmp eax, dword [esi + 0x18]
mov dword [esp + 0x30], ebx
je 0x40310b
push eax
mov ecx, esi
call fcn.004016e0
mov edx, dword [esi + 0x4fe0]
mov dword [esi + 0x4ff4], edx
mov eax, dword [esi + 0x4ff4]
and edi, 0x7ffffff
mov ebp, dword [eax + edi*2]
cmp ebp, 0xffffffff
mov dword [esp + 0x20], ebp
jne 0x40314b
push 0xe1
call fcn.00416f80
mov ecx, dword [esi]
add esp, 4
push eax
push 0x400
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x4037d3
mov edi, dword [esp + 0x14]
mov edx, dword [esi + 0x20]
shl edi, 7
shr edx, 1
add edi, edx
mov eax, edi
shr eax, 0x1b
cmp eax, dword [esi + 0x18]
je 0x403177
push eax
mov ecx, esi
call fcn.004016e0
mov eax, dword [esi + 0x4fe0]
mov dword [esi + 0x4ff4], eax
test ebp, ebp
jne 0x403199
mov ecx, dword [esi + 0x4ff4]
and edi, 0x7ffffff
cmp dword [ecx + edi*2], 0xffffffff
je 0x403199
mov ebp, dword [esp + 0x14]
add ebp, 1
jmp 0x4032f2
cmp dword [esp + 0x14], 0x10
jbe 0x403246
mov edi, dword [esp + 0x14]
mov edx, dword [esi + 0x20]
add edi, ebx
shr edi, 1
mov dword [esp + 0x18], edi
shl edi, 7
shr edx, 1
add edi, edx
mov eax, edi
shr eax, 0x1b
cmp eax, dword [esi + 0x18]
je 0x4031d8
push eax
mov ecx, esi
call fcn.004016e0
mov eax, dword [esi + 0x4fe0]
mov dword [esi + 0x4ff4], eax
mov ecx, dword [esi + 0x4ff4]
and edi, 0x7ffffff
mov edi, dword [ecx + edi*2]
cmp edi, 0xffffffff
je 0x403227
mov edx, dword [esi + 0x20]
mov ebp, ebx
shl ebp, 7
shr edx, 1
add ebp, edx
mov eax, ebp
shr eax, 0x1b
cmp eax, dword [esi + 0x18]
je 0x403216
push eax
mov ecx, esi
call fcn.004016e0
mov eax, dword [esi + 0x4fe0]
mov dword [esi + 0x4ff4], eax
mov ecx, dword [esi + 0x4ff4]
and ebp, 0x7ffffff
cmp edi, dword [ecx + ebp*2]
jae 0x403231
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], edi
jmp 0x403239
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov edx, edi
sub edx, ebx
cmp edx, 0x10
ja 0x4031a8
mov eax, dword [esi + 0x20]
shr eax, 1
lea ebp, [ebx + 1]
shl ebx, 7
add ebx, eax
mov eax, ebx
shr eax, 0x1b
cmp eax, dword [esi + 0x18]
je 0x403271
push eax
mov ecx, esi
call fcn.004016e0
mov ecx, dword [esi + 0x4fe0]
mov dword [esi + 0x4ff4], ecx
mov edx, dword [esi + 0x4ff4]
and ebx, 0x7ffffff
cmp ebp, dword [esp + 0x14]
mov ecx, dword [edx + ebx*2]
mov dword [esp + 0x24], ecx
ja 0x4032eb
mov ebx, ebp
shl ebx, 7
nop
mov edi, dword [esi + 0x20]
shr edi, 1
add edi, ebx
mov eax, edi
shr eax, 0x1b
cmp eax, dword [esi + 0x18]
je 0x4032b9
push eax
mov ecx, esi
call fcn.004016e0
mov eax, dword [esi + 0x4fe0]
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x4ff4], eax
mov edx, dword [esi + 0x4ff4]
and edi, 0x7ffffff
mov edi, dword [edx + edi*2]
mov edx, dword [esi + 0x57f8]
mov eax, edi
sub eax, ecx
shr edx, 1
cmp eax, edx
ja 0x4032eb
cmp edi, ecx
jb 0x4032eb
add ebp, 1
add ebx, 0x80
cmp ebp, dword [esp + 0x14]
jbe 0x403290
cmp dword [esp + 0x20], 0
jne 0x403368
sub ebp, 1
mov eax, ebp
mov edx, 0x80
mul edx
mov edi, eax
mov eax, dword [esi + 0x20]
xor ecx, ecx
mov ebx, edx
shr eax, 1
xor edx, edx
push ecx
add edi, eax
push 0x8000000
adc ebx, edx
push ebx
push edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
call fcn.00423780
cmp eax, dword [esi + 0x18]
je 0x40333d
push eax
mov ecx, esi
call fcn.004016e0
mov eax, dword [esi + 0x4fe0]
mov dword [esi + 0x4ff4], eax
push 0
push 0x8000000
push ebx
push edi
call fcn.00423830
mov ecx, dword [esi + 0x4ff4]
mov eax, dword [ecx + eax*2]
add eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
jmp 0x40342c
mov edx, dword [esi + 0x20]
lea edi, [ebp - 1]
shl edi, 7
shr edx, 1
add edi, edx
mov eax, edi
shr eax, 0x1b
cmp eax, dword [esi + 0x18]
je 0x403393
push eax
mov ecx, esi
call fcn.004016e0
mov eax, dword [esi + 0x4fe0]
mov dword [esi + 0x4ff4], eax
mov ecx, dword [esi + 0x4ff4]
mov edx, dword [esi + 0x20]
and edi, 0x7ffffff
mov ebx, dword [ecx + edi*2]
mov edi, ebp
shl edi, 7
shr edx, 1
add edi, edx
mov eax, edi
shr eax, 0x1b
cmp eax, dword [esi + 0x18]
je 0x4033cc
push eax
mov ecx, esi
call fcn.004016e0
mov eax, dword [esi + 0x4fe0]
mov dword [esi + 0x4ff4], eax
mov ecx, dword [esi + 0x4ff4]
and edi, 0x7ffffff
mov edi, dword [ecx + edi*2]
mov eax, edi
imul eax, eax, 0x7c
xor edx, edx
div dword [esi + 0x2c]
mov dword [esp + 0x30], edi
test eax, eax
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jge 0x4033fb
fadd qword [0x43d7e8]
fld dword [esi + 0x4ff0]
fdivr qword [0x43d5c8]
fmulp st(1)
call fcn.00423f36
sub ebx, edi
mov dword [esp + 0x14], ebp
mov ebp, dword [esi + 0x57f8]
add ebx, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], ebx
sub ebp, 1
mov edi, dword [esp + 0x18]
lea ebx, [edi*4]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push 0xff
push eax
mov dword [esi + 8], eax
call fcn.004238f0
lea edx, [edi - 1]
add esp, 0xc
cmp ebp, edx
jne 0x403486
xor ecx, ecx
mov eax, dword [esp + 0x14]
add eax, ecx
xor edx, edx
div dword [esi + 0x57f8]
mov eax, dword [esi + 8]
add ecx, 1
cmp ecx, ebp
mov dword [eax + ecx*4 - 4], edx
jbe 0x403465
jmp 0x4035bc
mov eax, dword [esi]
mov ecx, dword [0x4540fc]
push eax
push 0x407d40
push eax
push str.PERSENT
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 0xde
mov dword [esi + 4], eax
call fcn.00416f80
mov edx, dword [esi + 4]
add esp, 4
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor ebx, ebx
lea eax, [ebp + 1]
cmp eax, ebx
mov dword [esp + 0x24], ebx
jbe 0x4035a2
test eax, eax
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jge 0x4034df
fadd qword [0x43d7e8]
fstp qword [esp + 0x44]
mov eax, ebx
test eax, eax
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jge 0x4034f7
fadd qword [0x43d7e8]
fdiv qword [esp + 0x44]
fmul qword [0x43d7d0]
call fcn.00423f00
mov edi, eax
cmp edi, dword [esp + 0x24]
je 0x403537
mov ecx, dword [esi + 4]
push edi
push 1
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0
push 0
push 0
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x38], edi
call dword [sym.imp.USER32.dll_PeekMessageW]
mov eax, dword [esp + 0x14]
add eax, ebx
xor edx, edx
div dword [esi + 0x57f8]
mov ecx, dword [esi + 0x20]
shr ecx, 1
mov edi, edx
shl edi, 7
add edi, ecx
mov eax, edi
shr eax, 0x1b
cmp eax, dword [esi + 0x18]
mov dword [esp + 0x1c], edx
je 0x403577
push eax
mov ecx, esi
call fcn.004016e0
mov edx, dword [esi + 0x4fe0]
mov dword [esi + 0x4ff4], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x4ff4]
and edi, 0x7ffffff
mov ecx, dword [eax + edi*2]
sub ecx, dword [esp + 0x30]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edx
add ebx, 1
lea eax, [ebp + 1]
cmp ebx, eax
jb 0x4034e3
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push 0x64
push 1
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 4], 0
mov eax, dword [esi + 0x57f8]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push eax
push eax
lea edx, [esp + 0x12c]
push str.Number_of_256_bytes_sectors_in_SD_file__10u__08x_
push edx
call ebx
mov ecx, dword [0x454178]
add esp, 0x10
lea eax, [esp + 0x124]
push eax
call fcn.00401290
push edi
push edi
lea ecx, [esp + 0x12c]
push str.Number_of_data_sectors_include_holes___10u__08x_
push ecx
call ebx
mov ecx, dword [0x454178]
add esp, 0x10
lea edx, [esp + 0x124]
push edx
call fcn.00401290
cmp dword [esp + 0x20], 0
jne 0x403631
add ebp, 1
push ebp
push ebp
push str.Number_of_data_sectors_exclude_holes__10u__08x_
lea eax, [esp + 0x130]
push eax
jmp 0x403644
mov eax, dword [esp + 0x14]
push eax
push eax
push str.The_first_sector_of_cyclebuffer__10u__08x_
lea ecx, [esp + 0x130]
push ecx
call ebx
mov ecx, dword [0x454178]
add esp, 0x10
lea edx, [esp + 0x124]
push edx
call fcn.00401290
mov eax, edi
mov ecx, 0x100
mul ecx
mov ebp, edx
mov edx, dword [esi + 8]
mov ebx, eax
mov dword [esi + 0x57fc], edi
mov eax, dword [edx]
test eax, eax
je 0x403686
mov ecx, dword [esi + 0x2c]
imul eax, eax, 0x7c
xor edx, edx
div ecx
sub ecx, edx
jmp 0x403688
xor ecx, ecx
cmp ecx, dword [esi + 0x2c]
mov dword [esi + 0x5800], ecx
jne 0x40369d
mov dword [esi + 0x5800], 0
push 0
push 2
push ebp
push ebx
call fcn.00423780
push 0
push 0x80
mov ebx, edx
mov edi, eax
push ebx
push edi
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
call fcn.00423830
push 0
push 0x80
push ebx
push edi
mov ebp, eax
call fcn.00423780
mov ecx, 0x7c
mul ecx
cmp ebp, 4
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
jbe 0x4036ec
add ebp, 0xfffffffc
add dword [esi + 0x40], ebp
adc dword [esi + 0x44], 0
movzx edx, byte [esi + 0x1a9e]
movzx ecx, byte [esi + 0x1aa0]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
movzx eax, byte [esi + 0x1a9f]
mov word [esp + 0x40], dx
movzx edx, byte [esi + 0x1aa1]
mov word [esp + 0x3c], cx
movzx ecx, byte [esi + 0x1aa3]
mov word [esp + 0x3e], ax
movzx eax, byte [esi + 0x1aa2]
mov word [esp + 0x3a], dx
lea ebx, [esi + 0x4fe4]
push ebx
lea edx, [esp + 0x38]
add cx, 0x7d0
push edx
mov word [esp + 0x3e], ax
mov word [esp + 0x3c], cx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esi + 0x4fe8]
push 1
push 0
push 0
push eax
call fcn.00423740
mov ecx, dword [ebx]
mov ebp, eax
mov edi, edx
xor edx, edx
add ebp, ecx
adc edi, edx
add ebp, dword [esp + 0x28]
lea eax, [esp + 0x78]
adc edi, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov eax, dword [esp + 0x78]
push 0
cdq
push 0x23c34600
push edx
push eax
call fcn.00423740
add ebp, eax
adc edi, edx
mov ecx, edi
sar ecx, 0x1f
mov dword [esi + 0x4fe8], edi
mov dword [ebx], ebp
mov eax, dword [esi + 0x2c]
cdq
push edx
mov edx, dword [esi + 0x44]
push eax
mov eax, dword [esi + 0x40]
push edx
push eax
call fcn.00423780
mov dword [esi + 0x40], eax
mov eax, 1
mov dword [esi + 0x44], edx
mov dword [esi + 0x10], eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
xor ecx, esp
call fcn.00423284
add esp, 0x418
ret 4