Function at 0x4035c0
Capabilities:
Move file

Disassembly:
sub esp, 0x118
mov eax, dword [0x421fbc]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x4429e4], 6
mov eax, dword [esp + 0x120]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x20], eax
jne 0x4035fe
mov ebx, str.Devs6.out
mov dword [esp + 0x1c], ebx
mov eax, str.Devs6.cfg
jmp 0x40360c
mov ebx, str.Devs1x8.out
mov dword [esp + 0x1c], ebx
mov eax, str.Devs1x8.cfg
push 0x41c69c
push eax
call fcn.0040b2f4
mov ebp, eax
push 0x41c698
push ebx
mov dword [esp + 0x24], ebp
call fcn.0040b2f4
add esp, 0x10
test ebp, ebp
mov edi, eax
mov dword [esp + 0x18], edi
je 0x403e17
test edi, edi
je 0x403e17
mov eax, 0xa
cmp dword [esi + 0x49c], eax
jae 0x403654
mov dword [esi + 0x49c], eax
mov ecx, 0x14
cmp dword [esi + 0x4a0], ecx
jge 0x403667
mov dword [esi + 0x4a0], ecx
mov eax, 0x7d00
cmp dword [esi + 0x4a0], eax
jle 0x40367a
mov dword [esi + 0x4a0], eax
cmp dword [esi + 0x4a4], ecx
jge 0x403688
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.0040b0a9
add esp, 0xc
test eax, eax
mov ebp, 1
je 0x403d17
push 0xd
push ebx
call fcn.0040ac60
add esp, 8
test eax, eax
je 0x4036c5
mov byte [eax], 0
push 0xa
push ebx
call fcn.0040ac60
add esp, 8
test eax, eax
je 0x4036d7
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 0x4036e0
sub eax, edx
cmp eax, 1
jb 0x403cf1
push 0x41c308
push ebx
call fcn.0040a190
add esp, 8
test eax, eax
je 0x40371c
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 0x403710
push 0x3d
push ebx
call fcn.0040ac60
push 7
push str.Xwindow
push ebx
mov ebp, eax
call fcn.0040afeb
add esp, 0x14
test eax, eax
jne 0x403752
mov edx, dword [esi + 0xa58]
push edx
lea eax, [ebp + 1]
push 0x41c554
push eax
call fcn.0040ab25
add esp, 0xc
push 7
push str.Ywindow
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
jne 0x40377e
mov ecx, dword [esi + 0xa5c]
push ecx
lea edx, [ebp + 1]
push 0x41c554
push edx
call fcn.0040ab25
add esp, 0xc
cmp dword [esp + 0x12c], 0
jne 0x4037c9
push 7
push str.Xwindow
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
je 0x4037c9
push 7
push str.Ywindow
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
je 0x4037c9
push ebx
push 0x41c694
push edi
mov dword [esp + 0x1c], 1
call fcn.0040b336
jmp 0x403cee
mov eax, 1
mov dword [esi + 4], eax
cmp dword [0x4429e4], eax
jl 0x403850
mov edi, eax
jmp 0x4037e0
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x28]
push str.Color_d
push ecx
call fcn.0040ab25
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 0x403800
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
je 0x40382e
add dword [esi + 4], edi
mov eax, dword [esi + 4]
cmp eax, dword [0x4429e4]
jle 0x4037e0
jmp 0x40384e
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.0040ab25
add esp, 0xc
mov dword [esp + 0x10], edi
mov eax, edi
mov dword [esi + 4], eax
cmp dword [0x4429e4], eax
jl 0x4038d1
mov edi, 1
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x28]
push str.Scale_d
push edx
call fcn.0040ab25
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 0x403880
sub eax, edx
push eax
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
je 0x4038ae
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
cmp ecx, dword [0x4429e4]
jle 0x403860
jmp 0x4038cf
mov edx, dword [esi + 4]
fld dword [esi + edx*4 + 0x4cc]
sub esp, 8
fstp qword [esp]
lea eax, [ebp + 1]
push 0x41c688
push eax
call fcn.0040ab25
add esp, 0x10
mov eax, edi
mov dword [esi + 4], eax
cmp dword [0x4429e4], eax
jl 0x403951
mov edi, 1
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x28]
push str.StartRecordLevel_d
push edx
call fcn.0040ab25
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 0x403900
sub eax, edx
push eax
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
je 0x40392e
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
cmp ecx, dword [0x4429e4]
jle 0x4038e1
jmp 0x40394f
mov edx, dword [esi + 4]
fld dword [esi + edx*4 + 0x414]
sub esp, 8
fstp qword [esp]
lea eax, [ebp + 1]
push 0x41c688
push eax
call fcn.0040ab25
add esp, 0x10
mov eax, edi
mov dword [esi + 4], eax
cmp dword [0x4429e4], eax
jl 0x4039e1
mov edi, 1
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x28]
push str.AverageNumber_d
push edx
call fcn.0040ab25
lea eax, [esp + 0x30]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403982
sub eax, edx
push eax
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
je 0x4039b0
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
cmp ecx, dword [0x4429e4]
jle 0x403965
jmp 0x4039e1
mov edx, dword [esi + 4]
cmp dword [esi + edx*4 + 0x4ac], edi
lea eax, [esi + edx*4 + 0x4ac]
jae 0x4039c5
mov dword [eax], edi
mov eax, dword [esi + 4]
mov ecx, dword [esi + eax*4 + 0x4ac]
push ecx
lea edx, [ebp + 1]
push 0x41c684
push edx
call fcn.0040ab25
add esp, 0xc
push 9
push str.COMNumber
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
jne 0x403a0e
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 0x403a02
push 7
push str.DevName
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
jne 0x403a64
push 0x22
push ebp
call fcn.0040ac60
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 0x403a40
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403a50
mov dx, word [0x41c680]
mov word [edi], dx
push 6
push str.Folder
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
jne 0x403a9c
push 0x3a
push ebp
lea edi, [esi + 0x314]
call fcn.0040ac60
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 0x403a90
push 0x10
push str.StartMeasureType
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
jne 0x403ac8
mov eax, dword [esi + 0x414]
push eax
lea ecx, [ebp + 1]
push 0x41c67c
push ecx
call fcn.0040ab25
add esp, 0xc
push 0xd
push str.MaxFileLength
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
jne 0x403af4
mov edx, dword [esi + 0x49c]
push edx
lea eax, [ebp + 1]
push 0x41c67c
push eax
call fcn.0040ab25
add esp, 0xc
push 0x12
push str.StartRecordPrequel
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
jne 0x403b20
mov ecx, dword [esi + 0x4a0]
push ecx
lea edx, [ebp + 1]
push 0x41c67c
push edx
call fcn.0040ab25
add esp, 0xc
push 0x10
push str.DelayRecordAfter
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
jne 0x403b4c
mov eax, dword [esi + 0x4a4]
push eax
lea ecx, [ebp + 1]
push 0x41c67c
push ecx
call fcn.0040ab25
add esp, 0xc
push 0xf
push str.StartRecordTime
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
jne 0x403b7d
fld qword [esi + 0x4a8]
sub esp, 8
fstp qword [esp]
lea edx, [ebp + 1]
push str.__lg
push edx
call fcn.0040ab25
add esp, 0x10
push 8
push str.ICPstate
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
jne 0x403ba9
mov eax, dword [esi + 0xa50]
push eax
lea ecx, [ebp + 1]
push 0x41c67c
push ecx
call fcn.0040ab25
add esp, 0xc
push 0xc
push str.ReadChannels
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
jne 0x403bfd
push 0x5b
push ebp
call fcn.0040ac60
push 0x5d
push ebp
mov edi, eax
call fcn.0040ac60
add esp, 0x10
test edi, edi
je 0x403bfd
test eax, eax
je 0x403bfd
mov ecx, dword [0x4429e4]
sub eax, edi
lea edx, [ecx + 1]
cmp eax, edx
jne 0x403bfd
push ecx
lea eax, [esi + 0x438]
push eax
add edi, 1
push edi
call fcn.0040ae40
add esp, 0xc
push 0xf
push str.AnalyzeChannels
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
jne 0x403c51
push 0x5b
push ebp
call fcn.0040ac60
push 0x5d
push ebp
mov edi, eax
call fcn.0040ac60
add esp, 0x10
test edi, edi
je 0x403c51
test eax, eax
je 0x403c51
mov ecx, dword [0x4429e4]
sub eax, edi
lea edx, [ecx + 1]
cmp eax, edx
jne 0x403c51
push ecx
lea eax, [esi + 0x458]
push eax
add edi, 1
push edi
call fcn.0040ae40
add esp, 0xc
push 0xe
push str.RecordChannels
push ebx
call fcn.0040afeb
add esp, 0xc
test eax, eax
jne 0x403cda
push 0x5b
push ebp
call fcn.0040ac60
push 0x5d
push ebp
mov edi, eax
call fcn.0040ac60
add esp, 0x10
test edi, edi
je 0x403ca5
test eax, eax
je 0x403ca5
mov ecx, dword [0x4429e4]
sub eax, edi
lea edx, [ecx + 1]
cmp eax, edx
jne 0x403ca5
push ecx
lea eax, [esi + 0x478]
push eax
add edi, 1
push edi
call fcn.0040ae40
add esp, 0xc
xor eax, eax
mov dword [esi + 0x498], eax
cmp dword [0x4429e4], eax
jle 0x403cda
mov ecx, 1
lea ebx, [ebx]
cmp byte [esi + eax + 0x478], 0x2b
jne 0x403cd0
add dword [esi + 0x498], ecx
add eax, ecx
cmp eax, dword [0x4429e4]
jl 0x403cc0
mov ecx, dword [esp + 0x18]
push ebx
push 0x41c694
push ecx
call fcn.0040b336
mov edi, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
push edx
push 0xff
push ebx
call fcn.0040b0a9
add esp, 0xc
test eax, eax
jne 0x4036b3
cmp dword [esp + 0x10], eax
jne 0x403d78
mov ebp, 1
push 0x41c670
push edi
call fcn.0040b336
push 0x41c650
push edi
call fcn.0040b336
push 0x41c670
push edi
call fcn.0040b336
add esp, 0x18
mov dword [esi + 4], ebp
cmp dword [0x4429e4], ebp
jl 0x403d78
jmp 0x403d50
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.0040b336
add dword [esi + 4], ebp
mov edx, dword [esi + 4]
add esp, 0x10
cmp edx, dword [0x4429e4]
jle 0x403d50
push edi
call fcn.0040adc0
mov eax, dword [esp + 0x18]
push eax
call fcn.0040adc0
mov edi, dword [esp + 0x28]
add esp, 8
test edi, edi
je 0x403d97
mov eax, edi
jmp 0x403daa
cmp dword [0x4429e4], 6
mov eax, str.Devs6.cfg
je 0x403daa
mov eax, str.Devs1x8.cfg
push eax
call fcn.0040b331
add esp, 4
test edi, edi
je 0x403dbb
mov eax, edi
jmp 0x403dce
cmp dword [0x4429e4], 6
mov eax, str.Devs6.cfg
je 0x403dce
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 [0x4429e4], edi
jle 0x403e17
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
add esi, 0xa30
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x403e09
push eax
call ebp
add edi, 1
add esi, 4
cmp edi, dword [0x4429e4]
jl 0x403e00
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a66a
add esp, 0x118
ret 8