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

Disassembly:
sub esp, 0x43c
mov eax, dword [0x437788]
push ebx
push ebp
mov ebp, dword [esp + 0x448]
push esi
mov dword [esp + 0x440], eax
push edi
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, ebp
call fcn.00401490
mov ecx, dword [esp + 0x454]
push ecx
lea esi, [ebp + 0x48]
push esi
call fcn.0041bcbf
add esp, 8
push 0
push 0x20
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x24], eax
je 0x4023d0
lea ecx, [ebp + 0x4fe4]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [ebp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x20
lea esi, [ebp + 0x448]
push esi
push eax
mov dword [ebp + 0x20], 0
call ebx
mov edx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x18]
push 9
add edx, ecx
push str.ADCLABFFS
push esi
mov dword [ebp + 0x20], edx
call fcn.0041bb20
mov edx, dword [ebp + 0x24]
add esp, 0xc
test eax, eax
je 0x40167b
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402bf2
push 0
lea eax, [esp + 0x1c]
push eax
push 0x34
lea ecx, [ebp + 0x468]
push ecx
push edx
call ebx
fld qword [ebp + 0x490]
mov ecx, dword [ebp + 0x20]
fstp dword [ebp + 0x4ff0]
mov eax, dword [esp + 0x18]
mov edi, dword [0x43b52c]
add ecx, eax
mov dword [ebp + 0x20], ecx
mov esi, ecx
movsx ecx, byte [ebp + 0x498]
push 0x432bec
push str.Debug.txt
mov dword [ebp + 0x38], ecx
call fcn.0041bc24
push esi
push esi
push str._File_Head_length_
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041bc37
mov edx, dword [edi]
push edx
call fcn.0041bd27
mov eax, dword [ebp + 0x38]
add esp, 0x20
dec eax
je 0x401eac
sub eax, 5
jne 0x4020b7
mov edx, dword [ebp + 0x24]
push 0
lea eax, [esp + 0x1c]
push eax
push 0x66
lea ecx, [ebp + 0x1918]
push ecx
push edx
mov dword [ebp + 0x30], 1
call ebx
mov edi, dword [ebp + 0x20]
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov cl, byte [ebp + 0x193c]
add edi, eax
mov dword [ebp + 0x20], edi
mov edi, dword [0x43b52c]
push str.2_channel_mode
and ecx, 4
mov esi, ecx
call fcn.004012e0
mov ecx, dword [ebp + 0x24]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x126
lea eax, [ebp + 0x197e]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x18]
add dword [ebp + 0x20], edx
movsx ecx, byte [ebp + 0x193d]
mov eax, ecx
cdq
idiv dword [ebp + 0x30]
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x34], eax
test byte [ebp + 0x193c], 4
je 0x401781
lea eax, [ecx + ecx]
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x2c]
xor esi, esi
test eax, eax
jle 0x40186c
lea ecx, [ebp + 0x193e]
mov dword [esp + 0x1c], ecx
lea edi, [ebp + 0x53f8]
lea ecx, [ebp + 0x4f0]
mov edx, dword [esp + 0x1c]
xor eax, eax
mov ax, word [edx]
test al, al
lea ebx, [esi + 1]
mov dword [ecx], ebx
je 0x4017c1
lea edx, [eax + 1]
and edx, 0xff
mov dword [ecx], edx
mov dl, byte [ebp + 0x193c]
fld dword [ebp + 0x1a1c]
test dl, 4
je 0x40181b
mov eax, esi
cdq
sub eax, edx
sar eax, 1
and esi, 0x80000001
lea eax, [ebp + eax*2 + 0x193e]
jns 0x4017ed
dec esi
or esi, 0xfffffffe
inc esi
xor edx, edx
mov dl, byte [eax]
and edx, 0xff
test esi, esi
lea edx, [esi + edx*2 + 1]
mov dword [ecx], edx
jne 0x40180e
mov al, byte [eax + 1]
and al, 3
movsx ax, al
mov dword [edi], esi
jmp 0x401827
movsx eax, word [eax]
sar eax, 0xb
and eax, 3
mov dword [edi], esi
jmp 0x401827
sar eax, 8
and eax, 3
mov dword [edi], 0
movzx eax, ax
mov edx, dword [ebp + eax*4 + 0x19ac]
test edx, edx
fild dword [ebp + eax*4 + 0x19ac]
jge 0x401842
fadd dword [0x433d6c]
fdivp st(1)
mov dword [edi - 0x400], eax
add dword [esp + 0x1c], 2
mov esi, ebx
add edi, 4
add ecx, 0x14
fld st(0)
fchs
fstp qword [ecx - 0x10]
fstp qword [ecx - 8]
mov eax, dword [ebp + 0x2c]
cmp esi, eax
jl 0x4017a4
mov eax, dword [ebp + 0x2c]
test eax, eax
mov dword [esp + 0x14], 0
jle 0x40195d
lea eax, [ebp + 0x4ff8]
mov dword [esp + 0x1c], eax
lea ebx, [ebp + 0x193e]
nop
movzx eax, word [ebx]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push edx
mov ecx, eax
mov edx, eax
shr ecx, 0xb
and ecx, 3
push ecx
shr edx, 8
and edx, 3
push edx
and eax, 0xff
push eax
lea eax, [esp + 0xa0]
push str.Chan._02d_K1_d_K2_d_NGain_d
push eax
call fcn.0041bb59
mov esi, dword [0x43b52c]
add esp, 0x18
push 0
lea ecx, [esp + 0x94]
push 0
push ecx
lea edi, [esi + 0x204]
call fcn.0041b76a
add esp, 4
inc eax
push eax
push edi
push 0xffffffffffffffff
lea edx, [esp + 0xa4]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x90]
push eax
call fcn.0041b76a
push 0x432bec
push str.Debug.txt
mov byte [eax + esi + 0x204], 0
call fcn.0041bc24
push edi
push 0x432be8
push eax
mov dword [esi], eax
call fcn.0041bc37
mov ecx, dword [esi]
push ecx
call fcn.0041bd27
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ecx, dword [ebp + 0x2c]
add esp, 0x1c
inc eax
add edx, 4
add ebx, 2
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
jl 0x401890
lea edx, [esp + 0x90]
push str.Kdev
push edx
call fcn.0041bcbf
add esp, 8
lea edi, [esp + 0x9a]
lea esi, [ebp + 0x19a8]
mov ebx, 5
mov eax, dword [esi]
push eax
push str.__5u
push edi
call fcn.0041bb59
add esp, 0xc
add esi, 4
add edi, 0xc
dec ebx
jne 0x401984
mov esi, dword [0x43b52c]
push 0
lea ecx, [esp + 0x94]
push 0
push ecx
lea ebx, [esi + 0x204]
call fcn.0041b76a
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 4
inc eax
push eax
push ebx
push 0xffffffffffffffff
lea edx, [esp + 0xa4]
push edx
push 0
push 0
call edi
lea eax, [esp + 0x90]
push eax
call fcn.0041b76a
push 0x432bec
push str.Debug.txt
mov byte [eax + esi + 0x204], 0
call fcn.0041bc24
push ebx
push 0x432be8
push eax
mov dword [esi], eax
call fcn.0041bc37
mov ecx, dword [esi]
push ecx
call fcn.0041bd27
fld dword [ebp + 0x1a1c]
add esp, 0x14
fstp qword [esp]
lea edx, [esp + 0x98]
push str.ADC_Range____8.3f
push edx
call fcn.0041bb59
mov esi, dword [0x43b52c]
add esp, 0x10
push 0
lea eax, [esp + 0x94]
push 0
push eax
lea ebx, [esi + 0x204]
call fcn.0041b76a
add esp, 4
inc eax
push eax
push ebx
push 0xffffffffffffffff
lea ecx, [esp + 0xa4]
push ecx
push 0
push 0
call edi
lea edx, [esp + 0x90]
push edx
call fcn.0041b76a
push 0x432bec
push str.Debug.txt
mov byte [eax + esi + 0x204], 0
call fcn.0041bc24
push ebx
push 0x432be8
push eax
mov dword [esi], eax
call fcn.0041bc37
mov eax, dword [esi]
push eax
call fcn.0041bd27
lea ecx, [esp + 0xac]
push str.K1cal
push ecx
call fcn.0041bcbf
add esp, 0x24
lea ebx, [esp + 0x9c]
lea esi, [ebp + 0x19d0]
mov dword [esp + 0x14], 5
lea esp, [esp]
fld dword [esi]
sub esp, 8
fstp qword [esp]
push str.__8.3f
push ebx
call fcn.0041bb59
mov eax, dword [esp + 0x24]
add esp, 0x10
add esi, 4
add ebx, 0x10
dec eax
mov dword [esp + 0x14], eax
jne 0x401ad0
mov esi, dword [0x43b52c]
push 0
lea edx, [esp + 0x94]
push 0
push edx
lea ebx, [esi + 0x204]
call fcn.0041b76a
add esp, 4
inc eax
push eax
push ebx
push 0xffffffffffffffff
lea eax, [esp + 0xa4]
push eax
push 0
push 0
call edi
lea ecx, [esp + 0x90]
push ecx
call fcn.0041b76a
push 0x432bec
push str.Debug.txt
mov byte [eax + esi + 0x204], 0
call fcn.0041bc24
push ebx
push 0x432be8
push eax
mov dword [esi], eax
call fcn.0041bc37
mov edx, dword [esi]
push edx
call fcn.0041bd27
lea eax, [esp + 0xac]
push str.B1cal
push eax
call fcn.0041bcbf
add esp, 0x24
lea ebx, [esp + 0x9c]
lea esi, [ebp + 0x19bc]
mov dword [esp + 0x14], 5
mov edi, edi
fld dword [esi]
sub esp, 8
fstp qword [esp]
push str.__8.3f
push ebx
call fcn.0041bb59
mov eax, dword [esp + 0x24]
add esp, 0x10
add esi, 4
add ebx, 0x10
dec eax
mov dword [esp + 0x14], eax
jne 0x401b90
mov esi, dword [0x43b52c]
push 0
lea ecx, [esp + 0x94]
push 0
push ecx
lea ebx, [esi + 0x204]
call fcn.0041b76a
add esp, 4
inc eax
push eax
push ebx
push 0xffffffffffffffff
lea edx, [esp + 0xa4]
push edx
push 0
push 0
call edi
lea eax, [esp + 0x90]
push eax
call fcn.0041b76a
push 0x432bec
push str.Debug.txt
mov byte [eax + esi + 0x204], 0
call fcn.0041bc24
push ebx
push 0x432be8
push eax
mov dword [esi], eax
call fcn.0041bc37
mov ecx, dword [esi]
push ecx
call fcn.0041bd27
lea edx, [esp + 0xac]
push str.K2cal
push edx
call fcn.0041bcbf
add esp, 0x24
lea ebx, [esp + 0x9c]
lea esi, [ebp + 0x19f8]
mov dword [esp + 0x14], 5
mov edi, edi
fld dword [esi]
sub esp, 8
fstp qword [esp]
push str.__8.3f
push ebx
call fcn.0041bb59
mov eax, dword [esp + 0x24]
add esp, 0x10
add esi, 4
add ebx, 0x10
dec eax
mov dword [esp + 0x14], eax
jne 0x401c50
mov esi, dword [0x43b52c]
push 0
lea eax, [esp + 0x94]
push 0
push eax
lea ebx, [esi + 0x204]
call fcn.0041b76a
add esp, 4
inc eax
push eax
push ebx
push 0xffffffffffffffff
lea ecx, [esp + 0xa4]
push ecx
push 0
push 0
call edi
lea edx, [esp + 0x90]
push edx
call fcn.0041b76a
push 0x432bec
push str.Debug.txt
mov byte [eax + esi + 0x204], 0
call fcn.0041bc24
push ebx
push 0x432be8
push eax
mov dword [esi], eax
call fcn.0041bc37
mov eax, dword [esi]
push eax
call fcn.0041bd27
lea ecx, [esp + 0xac]
push str.B2cal
push ecx
call fcn.0041bcbf
add esp, 0x24
lea ebx, [esp + 0x9c]
lea esi, [ebp + 0x19e4]
mov dword [esp + 0x14], 5
mov edi, edi
fld dword [esi]
sub esp, 8
fstp qword [esp]
push str.__8.3f
push ebx
call fcn.0041bb59
mov eax, dword [esp + 0x24]
add esp, 0x10
add esi, 4
add ebx, 0x10
dec eax
mov dword [esp + 0x14], eax
jne 0x401d10
mov esi, dword [0x43b52c]
push 0
lea edx, [esp + 0x94]
push 0
push edx
lea ebx, [esi + 0x204]
call fcn.0041b76a
add esp, 4
inc eax
push eax
push ebx
push 0xffffffffffffffff
lea eax, [esp + 0xa4]
push eax
push 0
push 0
call edi
lea ecx, [esp + 0x90]
push ecx
call fcn.0041b76a
push 0x432bec
push str.Debug.txt
mov byte [eax + esi + 0x204], 0
call fcn.0041bc24
push ebx
push 0x432be8
push eax
mov dword [esi], eax
call fcn.0041bc37
mov edx, dword [esi]
push edx
call fcn.0041bd27
add esp, 0x1c
lea esi, [ebp + 0x5804]
or eax, 0xffffffff
push 0
mov ecx, 0x800
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x1c]
push eax
push 0xc
push esi
push ecx
call edi
push 8
push str.ADCBLOCK
push esi
call fcn.0041bb20
add esp, 0xc
test eax, eax
je 0x401df8
mov edx, dword [ebp + 0x24]
push 1
push 0
push 0xfffffffffffffff4
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4020b7
mov dword [ebp + 0x7804], 0xc
mov eax, dword [ebp + 0x580c]
mov dword [ebp + 0x7818], eax
test byte [ebp + 0x580c], 2
je 0x401e58
mov edx, dword [ebp + 0x2c]
push 0
lea ecx, [esp + 0x1c]
push ecx
lea eax, [edx*4 + 4]
mov edx, dword [ebp + 0x24]
push eax
lea ecx, [ebp + 0x5810]
push ecx
push edx
call edi
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x7804]
lea ecx, [eax*4 + 4]
add edx, ecx
mov ecx, dword [ebp + 0x20]
mov eax, edx
add ecx, eax
mov dword [ebp + 0x7804], edx
mov dword [ebp + 0x20], ecx
test byte [ebp + 0x580c], 4
je 0x4020b7
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x7804]
push 0
lea edx, [esp + 0x1c]
push edx
shl eax, 2
push eax
mov eax, dword [ebp + 0x24]
lea edx, [ecx + ebp + 0x5804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x7804]
mov ecx, dword [ebp + 0x20]
shl eax, 2
add edx, eax
add ecx, eax
mov dword [ebp + 0x7804], edx
mov dword [ebp + 0x20], ecx
jmp 0x4020b7
mov eax, dword [ebp + 0x48c]
mov edi, dword [0x43b52c]
mov ecx, eax
and ecx, 0x1ff
sar eax, 0x10
push 0x432b9c
mov esi, ecx
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x48c], ecx
call fcn.004012e0
mov esi, dword [ebp + 0x30]
test esi, esi
je 0x401ef2
mov edi, dword [0x43b52c]
push 0x432b84
call fcn.004012e0
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x401f00
mov dword [ebp + 0x30], 1
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x30]
cdq
idiv ecx
test ecx, ecx
mov dword [ebp + 0x34], eax
je 0x401f22
mov edi, dword [0x43b52c]
push 0x432b68
mov esi, eax
call fcn.004012e0
movsx esi, byte [ebp + 0x49b]
mov edi, dword [0x43b52c]
push str.m_mode
call fcn.004012e0
mov eax, dword [ebp + 0x2c]
xor ecx, ecx
test eax, eax
jle 0x401f6f
lea eax, [ebp + 0x4f4]
jmp 0x401f50
fld qword [0x433da0]
inc ecx
fstp qword [eax]
mov dword [eax - 4], ecx
fld qword [0x433cd8]
add eax, 0x14
fstp qword [eax - 0xc]
mov edx, dword [ebp + 0x2c]
cmp ecx, edx
jl 0x401f50
mov eax, dword [ebp + 0x24]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x18
lea edx, [esp + 0x29c]
push edx
push eax
call ebx
mov ecx, dword [ebp + 0x24]
push 1
push 0
push 0xffffffffffffffe8
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0xe
lea edx, [esp + 0x294]
push str.SAMPLES_RECORD
push edx
call fcn.0041bb20
add esp, 0xc
test eax, eax
je 0x4020b7
mov edx, dword [ebp + 0x24]
push 0
lea eax, [esp + 0x1c]
push eax
push 0x34
lea ecx, [ebp + 0x49c]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + 0x20]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x20
add edi, eax
mov eax, dword [ebp + 0x24]
lea edx, [ebp + 0x4d0]
push edx
push eax
mov dword [ebp + 0x20], edi
call ebx
mov edx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x2c]
add edx, ecx
xor esi, esi
test eax, eax
mov dword [ebp + 0x20], edx
jle 0x402037
lea edi, [ebp + 0x4f0]
jmp 0x402010
mov eax, dword [ebp + 0x24]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x14
push edi
push eax
call ebx
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x2c]
inc esi
add edi, 0x14
cmp esi, eax
jl 0x402010
or eax, 0xffffffff
lea esi, [ebp + 0x5804]
mov ecx, 0x800
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x48c]
mov edi, dword [ebp + 0x4ec]
lea ecx, [eax + eax*4]
shl ecx, 2
mov eax, ecx
cdq
cmp edx, edi
jg 0x402095
jl 0x40206c
cmp eax, dword [ebp + 0x4e8]
jae 0x402095
mov eax, dword [ebp + 0x4e8]
push 0
sub eax, ecx
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [ebp + 0x7804], eax
mov eax, dword [ebp + 0x24]
push esi
push eax
call ebx
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov dword [ebp + 0x20], eax
mov ecx, dword [ebp + 0x24]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x28
lea eax, [ebp + 0x18f0]
push eax
push ecx
call ebx
mov eax, dword [ebp + 0x20]
mov edx, dword [esp + 0x18]
add eax, edx
mov dword [ebp + 0x20], eax
mov edx, dword [ebp + 0x24]
push 0
lea eax, [esp + 0x1c]
push eax
push 0x20
lea ecx, [ebp + 0x1ac4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x20]
mov eax, dword [esp + 0x18]
add ecx, eax
mov dword [ebp + 0x20], ecx
mov ecx, dword [ebp + 0x24]
lea esi, [ebp + 0x4fdc]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 0x24]
push 0
push 0
push 0
push 2
push 0
push edx
mov dword [ebp + 0x4fd8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x28]
test eax, eax
jne 0x402182
mov ecx, dword [0x43c548]
mov edx, dword [0x43b4b0]
push pe_nt_image_headers32
shl ecx, 9
add ecx, 0x43b548
push ecx
push 0xe0
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x43c548]
lea ecx, [eax + 1]
and ecx, 0x80000007
jns 0x402158
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [ebp]
shl eax, 9
add eax, 0x43b548
push eax
push 0x400
push 0x400
push edx
mov dword [0x43c548], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x402bf2
mov eax, dword [esi]
push 1
cdq
push 0
push edx
push eax
mov dword [ebp + 0x18], 0xffffffff
call fcn.0041d760
mov ebx, dword [ebp + 0x38]
mov edi, eax
mov eax, dword [ebp + 0x4fd8]
xor ecx, ecx
add edi, eax
mov esi, edx
adc esi, ecx
cmp ebx, 1
mov dword [esp + 0x34], esi
jne 0x4021d0
mov edx, dword [ebp + 0x20]
xor eax, eax
mov ecx, edi
sub ecx, edx
push eax
mov edx, esi
push 4
sbb edx, eax
push edx
push ecx
call fcn.0041d7a0
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], edx
mov eax, dword [ebp + 0x20]
xor ecx, ecx
mov edx, edi
sub edx, eax
sbb esi, ecx
cmp ebx, 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
fild qword [esp + 0x20]
jne 0x4021f4
fmul qword [0x433d98]
jmp 0x4021fa
fmul qword [0x433c38]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x298]
push str._.0lf_counts_in_a_file_incl._8_bytes_numsect_in_case_2_byte_counts_
push eax
call fcn.0041b780
mov esi, dword [0x43b52c]
push 0x432bec
push str.Debug.txt
call fcn.0041bc24
lea ecx, [esp + 0x2a8]
push ecx
push 0x432be8
push eax
mov dword [esi], eax
call fcn.0041bc37
mov edx, dword [esi]
push edx
call fcn.0041bd27
mov eax, dword [ebp + 0x38]
add esp, 0x28
cmp eax, 6
jne 0x402bd1
movzx eax, byte [ebp + 0x1a9e]
movzx ecx, byte [ebp + 0x1a9f]
movzx edx, byte [ebp + 0x1aa0]
push eax
movzx eax, byte [ebp + 0x1aa3]
push ecx
movzx ecx, byte [ebp + 0x1aa2]
push edx
movzx edx, byte [ebp + 0x1aa1]
push eax
push ecx
push edx
lea eax, [esp + 0xa8]
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]
mov esi, dword [0x43b52c]
add esp, 0x20
push 0
lea ecx, [esp + 0x94]
push 0
push ecx
lea ebx, [esi + 0x204]
call fcn.0041b76a
add esp, 4
inc eax
push eax
push ebx
push 0xffffffffffffffff
lea edx, [esp + 0xa4]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x90]
push eax
call fcn.0041b76a
push 0x432bec
push str.Debug.txt
mov byte [eax + esi + 0x204], 0
call fcn.0041bc24
push ebx
push 0x432be8
push eax
mov dword [esi], eax
call fcn.0041bc37
mov ecx, dword [esi]
push ecx
call fcn.0041bd27
mov edx, dword [esp + 0x50]
add esp, 0x1c
xor esi, esi
push esi
push pe_nt_image_headers32
push edx
push edi
call fcn.0041d7a0
mov ecx, dword [ebp + 0x18]
add eax, 0xfffffffe
mov dword [ebp + 0x57f8], eax
mov dword [esp + 0x1c], esi
dec eax
mov dword [esp + 0x3c], esi
mov esi, dword [ebp + 0x20]
shr esi, 1
mov dword [esp + 0x14], eax
mov eax, esi
shr eax, 0x1b
cmp eax, ecx
je 0x40235a
mov ecx, ebp
call fcn.00402c10
mov eax, dword [ebp + 0x4fe0]
mov dword [ebp + 0x4ff4], eax
mov ecx, dword [ebp + 0x4ff4]
and esi, 0x7ffffff
mov edi, dword [ecx + esi*2]
cmp edi, 0xffffffff
mov dword [esp + 0x44], edi
jne 0x4023d7
mov edx, dword [0x43c548]
mov eax, dword [0x43b4b0]
push pe_nt_image_headers32
shl edx, 9
add edx, 0x43b548
push edx
push 0xe1
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x43c548]
lea ecx, [eax + 1]
and ecx, 0x80000007
jns 0x4023ad
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [ebp]
shl eax, 9
add eax, 0x43b548
push eax
push 0x400
push 0x400
push edx
mov dword [0x43c548], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x402bf2
mov ebx, dword [esp + 0x14]
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
mov eax, ebx
shl eax, 7
shr esi, 1
add esi, eax
mov eax, esi
shr eax, 0x1b
cmp eax, ecx
je 0x402406
mov ecx, ebp
call fcn.00402c10
mov ecx, dword [ebp + 0x4fe0]
mov dword [ebp + 0x4ff4], ecx
test edi, edi
jne 0x402424
mov edx, dword [ebp + 0x4ff4]
and esi, 0x7ffffff
cmp dword [edx + esi*2], 0xffffffff
je 0x402424
lea edi, [ebx + 1]
jmp 0x40258a
cmp ebx, 0x10
mov eax, dword [esp + 0x1c]
jbe 0x4024d4
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
lea edi, [ebx + eax]
shr edi, 1
mov eax, edi
shl eax, 7
shr esi, 1
add esi, eax
mov eax, esi
shr eax, 0x1b
cmp eax, ecx
je 0x402461
mov ecx, ebp
call fcn.00402c10
mov ecx, dword [ebp + 0x4fe0]
mov dword [ebp + 0x4ff4], ecx
mov edx, dword [ebp + 0x4ff4]
and esi, 0x7ffffff
mov esi, dword [edx + esi*2]
cmp esi, 0xffffffff
je 0x4024b3
mov ebx, dword [ebp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x18]
shl eax, 7
shr ebx, 1
add ebx, eax
mov eax, ebx
shr eax, 0x1b
cmp eax, ecx
je 0x4024a2
mov ecx, ebp
call fcn.00402c10
mov ecx, dword [ebp + 0x4fe0]
mov dword [ebp + 0x4ff4], ecx
mov edx, dword [ebp + 0x4ff4]
and ebx, 0x7ffffff
cmp esi, dword [edx + ebx*2]
jae 0x4024bb
mov ebx, edi
mov dword [esp + 0x14], ebx
jmp 0x4024c3
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x1c]
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x10
ja 0x402431
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
lea edi, [eax + 1]
shl eax, 7
shr esi, 1
add esi, eax
mov eax, esi
shr eax, 0x1b
cmp eax, ecx
je 0x402500
mov ecx, ebp
call fcn.00402c10
mov edx, dword [ebp + 0x4fe0]
mov dword [ebp + 0x4ff4], edx
mov eax, dword [ebp + 0x4ff4]
and esi, 0x7ffffff
cmp edi, ebx
mov ecx, dword [eax + esi*2]
mov dword [esp + 0x14], ecx
ja 0x402582
mov ecx, edi
shl ecx, 7
mov dword [esp + 0x1c], ecx
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
shr esi, 1
add esi, ecx
mov eax, esi
shr eax, 0x1b
cmp eax, edx
je 0x40254a
mov ecx, ebp
call fcn.00402c10
mov edx, dword [ebp + 0x4fe0]
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x4ff4], edx
mov eax, dword [ebp + 0x4ff4]
and esi, 0x7ffffff
mov esi, dword [eax + esi*2]
mov eax, dword [esp + 0x14]
mov edx, esi
sub edx, eax
mov eax, dword [ebp + 0x57f8]
shr eax, 1
cmp edx, eax
ja 0x402582
cmp esi, dword [esp + 0x14]
jb 0x402582
inc edi
add ecx, 0x80
cmp edi, ebx
mov dword [esp + 0x1c], ecx
jbe 0x402520
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4025fe
mov esi, dword [ebp + 0x20]
dec edi
mov ecx, 0x80
mov eax, edi
mul ecx
push 0
shr esi, 1
xor ebx, ebx
add esi, eax
push 0x8000000
adc ebx, edx
push ebx
push esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], edi
call fcn.0041d7a0
cmp eax, dword [ebp + 0x18]
je 0x4025d9
mov ecx, ebp
call fcn.00402c10
mov edx, dword [ebp + 0x4fe0]
mov dword [ebp + 0x4ff4], edx
push 0
push 0x8000000
push ebx
push esi
call fcn.00424500
mov ecx, dword [ebp + 0x4ff4]
mov ebx, dword [ecx + eax*2]
inc ebx
mov dword [esp + 0x1c], 0
jmp 0x4026be
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
lea esi, [edi - 1]
shl esi, 7
shr edx, 1
add esi, edx
mov eax, esi
shr eax, 0x1b
cmp eax, ecx
je 0x40262a
mov ecx, ebp
call fcn.00402c10
mov eax, dword [ebp + 0x4fe0]
mov dword [ebp + 0x4ff4], eax
mov ecx, dword [ebp + 0x4ff4]
and esi, 0x7ffffff
mov ebx, dword [ecx + esi*2]
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
mov edx, edi
shr esi, 1
shl edx, 7
add esi, edx
mov eax, esi
shr eax, 0x1b
cmp eax, ecx
je 0x402664
mov ecx, ebp
call fcn.00402c10
mov eax, dword [ebp + 0x4fe0]
mov dword [ebp + 0x4ff4], eax
mov ecx, dword [ebp + 0x4ff4]
and esi, 0x7ffffff
mov esi, dword [ecx + esi*2]
mov eax, esi
imul eax, eax, 0x7c
xor edx, edx
div dword [ebp + 0x2c]
mov dword [esp + 0x3c], esi
test eax, eax
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
jge 0x402693
fadd qword [0x433ca0]
fdiv dword [ebp + 0x4ff0]
fmul qword [0x433c98]
call fcn.0041d6e4
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x57f8]
sub ebx, esi
inc ebx
dec edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edx
lea esi, [ebx*4]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, dword [esp + 0x14]
mov edx, ecx
mov edi, eax
shr ecx, 2
or eax, 0xffffffff
mov dword [ebp + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebx - 1]
cmp esi, eax
jne 0x40271d
mov edi, dword [esp + 0x1c]
xor ecx, ecx
xor edx, edx
lea eax, [ecx + edi]
div dword [ebp + 0x57f8]
mov eax, dword [ebp + 8]
inc ecx
cmp ecx, esi
mov dword [eax + ecx*4 - 4], edx
jbe 0x402701
jmp 0x402899
mov eax, dword [ebp]
mov ecx, dword [0x43b4b0]
push eax
push 0x4081e0
push eax
push str.PERSENT
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov edx, dword [0x43c548]
push pe_nt_image_headers32
shl edx, 9
add edx, 0x43b548
push edx
mov dword [ebp + 4], eax
mov eax, dword [0x43b4b0]
push 0xde
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x43c548]
lea ecx, [eax + 1]
and ecx, 0x80000007
jns 0x402777
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [ebp + 4]
shl eax, 9
add eax, 0x43b548
push eax
push edx
mov dword [0x43c548], ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor edi, edi
lea eax, [esi + 1]
cmp eax, edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], eax
jbe 0x40287f
test eax, eax
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
jge 0x4027b7
fadd qword [0x433ca0]
fstp qword [esp + 0x58]
jmp 0x4027c0
test edi, edi
mov dword [esp + 0x2c], edi
fild dword [esp + 0x2c]
jge 0x4027d2
fadd qword [0x433ca0]
fdiv qword [esp + 0x58]
fmul qword [0x433cc0]
call fcn.0041d6e4
mov esi, eax
cmp esi, dword [esp + 0x40]
je 0x402815
mov eax, dword [ebp + 4]
push esi
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x84]
push ecx
mov dword [esp + 0x54], esi
call dword [sym.imp.USER32.dll_PeekMessageW]
mov edx, dword [esp + 0x1c]
lea eax, [edi + edx]
xor edx, edx
div dword [ebp + 0x57f8]
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
shr esi, 1
mov eax, edx
shl eax, 7
add esi, eax
mov eax, esi
shr eax, 0x1b
cmp eax, ecx
mov dword [esp + 0x2c], edx
je 0x402857
mov ecx, ebp
call fcn.00402c10
mov ecx, dword [ebp + 0x4fe0]
mov edx, dword [esp + 0x2c]
mov dword [ebp + 0x4ff4], ecx
mov eax, dword [ebp + 0x4ff4]
and esi, 0x7ffffff
mov ecx, dword [eax + esi*2]
mov esi, dword [esp + 0x3c]
mov eax, dword [ebp + 8]
sub ecx, esi
mov dword [eax + ecx*4], edx
mov eax, dword [esp + 0x30]
inc edi
cmp edi, eax
jb 0x4027c0
mov ecx, dword [ebp + 4]
push 0x64
push 1
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 4], 0
mov eax, dword [ebp + 0x57f8]
push eax
push eax
lea edx, [esp + 0x98]
push str.Number_of_256_bytes_sectors_in_SD_file__10u__08x_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [0x43b52c]
add esp, 0x10
push 0
lea eax, [esp + 0x94]
push 0
push eax
lea edi, [esi + 0x204]
call fcn.0041b76a
add esp, 4
inc eax
push eax
push edi
push 0xffffffffffffffff
lea ecx, [esp + 0xa4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [esp + 0x90]
push edx
call fcn.0041b76a
push 0x432bec
push str.Debug.txt
mov byte [eax + esi + 0x204], 0
call fcn.0041bc24
push edi
push 0x432be8
push eax
mov dword [esi], eax
call fcn.0041bc37
mov eax, dword [esi]
push eax
call fcn.0041bd27
push ebx
push ebx
lea ecx, [esp + 0xb4]
push str.Number_of_data_sectors_include_holes___10u__08x_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [0x43b52c]
add esp, 0x2c
push 0
lea edx, [esp + 0x94]
push 0
push edx
lea edi, [esi + 0x204]
call fcn.0041b76a
add esp, 4
inc eax
push eax
push edi
push 0xffffffffffffffff
lea eax, [esp + 0xa4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x90]
push ecx
call fcn.0041b76a
push 0x432bec
push str.Debug.txt
mov byte [eax + esi + 0x204], 0
call fcn.0041bc24
push edi
push 0x432be8
push eax
mov dword [esi], eax
call fcn.0041bc37
mov edx, dword [esi]
push edx
call fcn.0041bd27
mov eax, dword [esp + 0x60]
add esp, 0x1c
test eax, eax
jne 0x4029d2
mov eax, dword [esp + 0x14]
inc eax
push eax
push eax
push str.Number_of_data_sectors_exclude_holes__10u__08x_
lea eax, [esp + 0x9c]
push eax
jmp 0x4029e5
mov eax, dword [esp + 0x1c]
push eax
push eax
push str.The_first_sector_of_cyclebuffer__10u__08x_
lea ecx, [esp + 0x9c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [0x43b52c]
add esp, 0x10
push 0
lea edx, [esp + 0x94]
push 0
push edx
lea edi, [esi + 0x204]
call fcn.0041b76a
add esp, 4
inc eax
push eax
push edi
push 0xffffffffffffffff
lea eax, [esp + 0xa4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x90]
push ecx
call fcn.0041b76a
push 0x432bec
push str.Debug.txt
mov byte [eax + esi + 0x204], 0
call fcn.0041bc24
push edi
push 0x432be8
push eax
mov dword [esi], eax
call fcn.0041bc37
mov edx, dword [esi]
push edx
call fcn.0041bd27
mov eax, ebx
mov ecx, pe_nt_image_headers32
mul ecx
mov edi, edx
mov edx, dword [ebp + 8]
mov esi, eax
mov dword [ebp + 0x57fc], ebx
mov eax, dword [edx]
add esp, 0x1c
test eax, eax
je 0x402a8c
mov ecx, dword [ebp + 0x2c]
imul eax, eax, 0x7c
xor edx, edx
div ecx
sub ecx, edx
jmp 0x402a8e
xor ecx, ecx
cmp ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x5800], ecx
jne 0x402aa3
mov dword [ebp + 0x5800], 0
push 0
push 2
push edi
push esi
call fcn.0041d7a0
push 0
push 0x80
mov edi, edx
mov esi, eax
push edi
push esi
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], edx
call fcn.00424500
push 0
push 0x80
push edi
push esi
mov ebx, eax
call fcn.0041d7a0
mov ecx, 0x7c
mul ecx
cmp ebx, 4
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], edx
jbe 0x402afa
mov ecx, eax
add ebx, 0xfffffffc
add ecx, ebx
mov eax, edx
adc eax, 0
mov dword [ebp + 0x40], ecx
mov dword [ebp + 0x44], eax
movzx ax, byte [ebp + 0x1a9e]
movzx cx, byte [ebp + 0x1a9f]
xor edx, edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
movzx dx, byte [ebp + 0x1aa0]
mov word [esp + 0x50], dx
movzx dx, byte [ebp + 0x1aa3]
mov word [esp + 0x54], ax
movzx ax, byte [ebp + 0x1aa1]
mov word [esp + 0x52], cx
movzx cx, byte [ebp + 0x1aa2]
mov word [esp + 0x4e], ax
lea edi, [ebp + 0x4fe4]
push edi
lea eax, [esp + 0x4c]
add edx, 0x7d0
push eax
mov word [esp + 0x52], cx
mov word [esp + 0x50], dx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [ebp + 0x4fe8]
push 1
push 0
push 0
push ecx
call fcn.0041d760
mov ecx, dword [esp + 0x20]
mov ebx, eax
mov esi, edx
mov edx, dword [edi]
xor eax, eax
add ebx, edx
adc esi, eax
mov eax, dword [esp + 0x24]
add ebx, ecx
lea ecx, [esp + 0x390]
push ecx
adc esi, eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov eax, dword [esp + 0x390]
push 0
cdq
push 0x23c34600
push edx
push eax
call fcn.0041d760
add ebx, eax
adc esi, edx
mov edx, esi
sar edx, 0x1f
mov dword [ebp + 0x4fe8], esi
mov dword [edi], ebx
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x40]
cdq
push edx
push eax
mov eax, dword [ebp + 0x44]
push eax
push ecx
call fcn.0041d7a0
mov dword [ebp + 0x40], eax
mov eax, 1
mov dword [ebp + 0x44], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [esp + 0x444]
call fcn.0041c756
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret 8