Function at 0x402760
Capabilities:
Move file

Disassembly:
sub esp, 0x118
mov eax, dword [0x422f90]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x4244cc], 6
mov eax, dword [esp + 0x120]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x20], eax
jne 0x40279e
mov ebx, str.Devs6.out
mov dword [esp + 0x1c], ebx
mov eax, str.Devs6.cfg
jmp 0x4027ac
mov ebx, str.Devs1x8.out
mov dword [esp + 0x1c], ebx
mov eax, str.Devs1x8.cfg
push 0x41d608
push eax
call fcn.0040ac12
mov ebp, eax
push 0x41d604
push ebx
mov dword [esp + 0x24], ebp
call fcn.0040ac12
add esp, 0x10
test ebp, ebp
mov edi, eax
mov dword [esp + 0x18], edi
je 0x402fb7
test edi, edi
je 0x402fb7
mov eax, 0xa
cmp dword [esi + 0x49c], eax
jae 0x4027f4
mov dword [esi + 0x49c], eax
mov ecx, 0x14
cmp dword [esi + 0x4a0], ecx
jge 0x402807
mov dword [esi + 0x4a0], ecx
mov eax, 0x7d00
cmp dword [esi + 0x4a0], eax
jle 0x40281a
mov dword [esi + 0x4a0], eax
cmp dword [esi + 0x4a4], ecx
jge 0x402828
mov dword [esi + 0x4a4], ecx
mov ecx, dword [esp + 0x14]
push ecx
lea ebx, [esi + 8]
push 0xff
push ebx
mov dword [esp + 0x1c], 0
call fcn.0040b1b6
add esp, 0xc
test eax, eax
mov ebp, 1
je 0x402eb7
push 0xd
push ebx
call fcn.0040ad20
add esp, 8
test eax, eax
je 0x402865
mov byte [eax], 0
push 0xa
push ebx
call fcn.0040ad20
add esp, 8
test eax, eax
je 0x402877
mov byte [eax], 0
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402880
sub eax, edx
cmp eax, 1
jb 0x402e91
push 0x41d52c
push ebx
call fcn.0040b170
add esp, 8
test eax, eax
je 0x4028bc
add eax, ebx
mov edx, ebx
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x4028b0
push 0x3d
push ebx
call fcn.0040ad20
push 7
push str.Xwindow
push ebx
mov ebp, eax
call fcn.0040b0ab
add esp, 0x14
test eax, eax
jne 0x4028f2
mov edx, dword [esi + 0xa58]
push edx
lea eax, [ebp + 1]
push 0x41d4bc
push eax
call fcn.0040a975
add esp, 0xc
push 7
push str.Ywindow
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
jne 0x40291e
mov ecx, dword [esi + 0xa5c]
push ecx
lea edx, [ebp + 1]
push 0x41d4bc
push edx
call fcn.0040a975
add esp, 0xc
cmp dword [esp + 0x12c], 0
jne 0x402969
push 7
push str.Xwindow
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
je 0x402969
push 7
push str.Ywindow
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
je 0x402969
push ebx
push 0x41d600
push edi
mov dword [esp + 0x1c], 1
call fcn.0040a9ff
jmp 0x402e8e
mov eax, 1
mov dword [esi + 4], eax
cmp dword [0x4244cc], eax
jl 0x4029f0
mov edi, eax
jmp 0x402980
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x28]
push str.Color_d
push ecx
call fcn.0040a975
lea eax, [esp + 0x30]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4029a0
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
je 0x4029ce
add dword [esi + 4], edi
mov eax, dword [esi + 4]
cmp eax, dword [0x4244cc]
jle 0x402980
jmp 0x4029ee
mov ecx, dword [esi + 4]
mov edx, dword [esi + ecx*4 + 0xa0c]
push edx
lea eax, [ebp + 1]
push str.___08x
push eax
call fcn.0040a975
add esp, 0xc
mov dword [esp + 0x10], edi
mov eax, edi
mov dword [esi + 4], eax
cmp dword [0x4244cc], eax
jl 0x402a71
mov edi, 1
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x28]
push str.Scale_d
push edx
call fcn.0040a975
lea eax, [esp + 0x30]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402a20
sub eax, edx
push eax
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
je 0x402a4e
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
cmp ecx, dword [0x4244cc]
jle 0x402a00
jmp 0x402a6f
mov edx, dword [esi + 4]
fld dword [esi + edx*4 + 0x4cc]
sub esp, 8
fstp qword [esp]
lea eax, [ebp + 1]
push 0x41d5f4
push eax
call fcn.0040a975
add esp, 0x10
mov eax, edi
mov dword [esi + 4], eax
cmp dword [0x4244cc], eax
jl 0x402af1
mov edi, 1
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x28]
push str.StartRecordLevel_d
push edx
call fcn.0040a975
lea eax, [esp + 0x30]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402aa0
sub eax, edx
push eax
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
je 0x402ace
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
cmp ecx, dword [0x4244cc]
jle 0x402a81
jmp 0x402aef
mov edx, dword [esi + 4]
fld dword [esi + edx*4 + 0x414]
sub esp, 8
fstp qword [esp]
lea eax, [ebp + 1]
push 0x41d5f4
push eax
call fcn.0040a975
add esp, 0x10
mov eax, edi
mov dword [esi + 4], eax
cmp dword [0x4244cc], eax
jl 0x402b81
mov edi, 1
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x28]
push str.AverageNumber_d
push edx
call fcn.0040a975
lea eax, [esp + 0x30]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402b22
sub eax, edx
push eax
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
je 0x402b50
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
cmp ecx, dword [0x4244cc]
jle 0x402b05
jmp 0x402b81
mov edx, dword [esi + 4]
cmp dword [esi + edx*4 + 0x4ac], edi
lea eax, [esi + edx*4 + 0x4ac]
jae 0x402b65
mov dword [eax], edi
mov eax, dword [esi + 4]
mov ecx, dword [esi + eax*4 + 0x4ac]
push ecx
lea edx, [ebp + 1]
push 0x41d5f0
push edx
call fcn.0040a975
add esp, 0xc
push 9
push str.COMNumber
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
jne 0x402bae
lea eax, [esi + 0x108]
mov ecx, ebp
sub ecx, eax
lea edx, [ecx + 1]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402ba2
push 7
push str.DevName
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
jne 0x402c04
push 0x22
push ebp
call fcn.0040ad20
lea edi, [eax + 1]
lea ecx, [esi + 0x114]
mov edx, edi
add esp, 8
sub edx, ecx
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx + ecx], al
add ecx, 1
test al, al
jne 0x402be0
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x402bf0
mov dx, word [0x41d5ec]
mov word [edi], dx
push 6
push str.Folder
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
jne 0x402c3c
push 0x3a
push ebp
lea edi, [esi + 0x314]
call fcn.0040ad20
add esp, 8
sub eax, edi
lea ecx, [eax - 1]
mov edi, edi
mov al, byte [edi]
mov byte [ecx + edi], al
add edi, 1
test al, al
jne 0x402c30
push 0x10
push str.StartMeasureType
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
jne 0x402c68
mov eax, dword [esi + 0x414]
push eax
lea ecx, [ebp + 1]
push 0x41d5e8
push ecx
call fcn.0040a975
add esp, 0xc
push 0xd
push str.MaxFileLength
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
jne 0x402c94
mov edx, dword [esi + 0x49c]
push edx
lea eax, [ebp + 1]
push 0x41d5e8
push eax
call fcn.0040a975
add esp, 0xc
push 0x12
push str.StartRecordPrequel
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
jne 0x402cc0
mov ecx, dword [esi + 0x4a0]
push ecx
lea edx, [ebp + 1]
push 0x41d5e8
push edx
call fcn.0040a975
add esp, 0xc
push 0x10
push str.DelayRecordAfter
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
jne 0x402cec
mov eax, dword [esi + 0x4a4]
push eax
lea ecx, [ebp + 1]
push 0x41d5e8
push ecx
call fcn.0040a975
add esp, 0xc
push 0xf
push str.StartRecordTime
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
jne 0x402d1d
fld qword [esi + 0x4a8]
sub esp, 8
fstp qword [esp]
lea edx, [ebp + 1]
push str.__lg
push edx
call fcn.0040a975
add esp, 0x10
push 8
push str.ICPstate
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
jne 0x402d49
mov eax, dword [esi + 0xa50]
push eax
lea ecx, [ebp + 1]
push 0x41d5e8
push ecx
call fcn.0040a975
add esp, 0xc
push 0xc
push str.ReadChannels
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
jne 0x402d9d
push 0x5b
push ebp
call fcn.0040ad20
push 0x5d
push ebp
mov edi, eax
call fcn.0040ad20
add esp, 0x10
test edi, edi
je 0x402d9d
test eax, eax
je 0x402d9d
mov ecx, dword [0x4244cc]
sub eax, edi
lea edx, [ecx + 1]
cmp eax, edx
jne 0x402d9d
push ecx
lea eax, [esi + 0x438]
push eax
add edi, 1
push edi
call fcn.0040af00
add esp, 0xc
push 0xf
push str.AnalyzeChannels
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
jne 0x402df1
push 0x5b
push ebp
call fcn.0040ad20
push 0x5d
push ebp
mov edi, eax
call fcn.0040ad20
add esp, 0x10
test edi, edi
je 0x402df1
test eax, eax
je 0x402df1
mov ecx, dword [0x4244cc]
sub eax, edi
lea edx, [ecx + 1]
cmp eax, edx
jne 0x402df1
push ecx
lea eax, [esi + 0x458]
push eax
add edi, 1
push edi
call fcn.0040af00
add esp, 0xc
push 0xe
push str.RecordChannels
push ebx
call fcn.0040b0ab
add esp, 0xc
test eax, eax
jne 0x402e7a
push 0x5b
push ebp
call fcn.0040ad20
push 0x5d
push ebp
mov edi, eax
call fcn.0040ad20
add esp, 0x10
test edi, edi
je 0x402e45
test eax, eax
je 0x402e45
mov ecx, dword [0x4244cc]
sub eax, edi
lea edx, [ecx + 1]
cmp eax, edx
jne 0x402e45
push ecx
lea eax, [esi + 0x478]
push eax
add edi, 1
push edi
call fcn.0040af00
add esp, 0xc
xor eax, eax
mov dword [esi + 0x498], eax
cmp dword [0x4244cc], eax
jle 0x402e7a
mov ecx, 1
lea ebx, [ebx]
cmp byte [esi + eax + 0x478], 0x2b
jne 0x402e70
add dword [esi + 0x498], ecx
add eax, ecx
cmp eax, dword [0x4244cc]
jl 0x402e60
mov ecx, dword [esp + 0x18]
push ebx
push 0x41d600
push ecx
call fcn.0040a9ff
mov edi, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
push edx
push 0xff
push ebx
call fcn.0040b1b6
add esp, 0xc
test eax, eax
jne 0x402853
cmp dword [esp + 0x10], eax
jne 0x402f18
mov ebp, 1
push 0x41d5dc
push edi
call fcn.0040a9ff
push 0x41d5bc
push edi
call fcn.0040a9ff
push 0x41d5dc
push edi
call fcn.0040a9ff
add esp, 0x18
mov dword [esi + 4], ebp
cmp dword [0x4244cc], ebp
jl 0x402f18
jmp 0x402ef0
mov eax, dword [esi + 4]
mov ecx, dword [esi + eax*4 + 0xa0c]
push ecx
push eax
push str.Color_d____08x_n
push edi
call fcn.0040a9ff
add dword [esi + 4], ebp
mov edx, dword [esi + 4]
add esp, 0x10
cmp edx, dword [0x4244cc]
jle 0x402ef0
push edi
call fcn.0040ae80
mov eax, dword [esp + 0x18]
push eax
call fcn.0040ae80
mov edi, dword [esp + 0x28]
add esp, 8
test edi, edi
je 0x402f37
mov eax, edi
jmp 0x402f4a
cmp dword [0x4244cc], 6
mov eax, str.Devs6.cfg
je 0x402f4a
mov eax, str.Devs1x8.cfg
push eax
call fcn.0040ac4f
add esp, 4
test edi, edi
je 0x402f5b
mov eax, edi
jmp 0x402f6e
cmp dword [0x4244cc], 6
mov eax, str.Devs6.cfg
je 0x402f6e
mov eax, str.Devs1x8.cfg
mov ecx, dword [esp + 0x1c]
push 9
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
xor edi, edi
mov dword [esi + 0xa54], 0
cmp dword [0x4244cc], edi
jle 0x402fb7
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
add esi, 0xa30
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x402fa9
push eax
call ebp
add edi, 1
add esi, 4
cmp edi, dword [0x4244cc]
jl 0x402fa0
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a9f0
add esp, 0x118
ret 8