Function at 0x40c820
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x840
push ebx
mov ebx, dword [esp + 0x84c]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor edi, edi
push eax
push ebx
mov dword [esp + 0x18], edi
call fcn.00406d10
add esp, 8
test eax, eax
jne 0x40c854
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret
mov esi, dword [esp + 0x85c]
mov ecx, dword [esi + 0xe18]
push ecx
call fcn.00408910
lea edx, [esp + 0x14]
push str.AutoLoadFiles
push edx
mov dword [esi + 0xe18], edi
call fcn.004072f0
mov ebp, eax
push 4
mov dword [esp + 0x3c], ebp
lea eax, [ebp + 1]
push eax
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 0x14
cmp eax, edi
mov dword [esi + 0xe18], eax
jne 0x40c8b5
lea ecx, [esp + 0x10]
push ecx
call fcn.004071a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret
test ebp, ebp
jle 0x40c8e3
push 2
push 0x80
call dword [sym.imp.MSVCRT.dll_calloc]
mov edx, dword [esi + 0xe18]
add esp, 8
mov dword [edx + edi*4], eax
mov eax, dword [esi + 0xe18]
cmp dword [eax + edi*4], 0
je 0x40c92a
inc edi
cmp edi, ebp
jl 0x40c8b9
lea eax, [esp + 0x50]
push 0x200
push eax
push str.SAM_Type
lea ecx, [esp + 0x1c]
push str.Configuration
push ecx
push ebx
call fcn.00408a80
mov ebp, dword [sym.imp.MSVCRT.dll__wcsicmp]
mov edi, eax
neg edi
lea edx, [esp + 0x68]
push str.FIRST
sbb edi, edi
push edx
inc edi
call ebp
add esp, 0x20
test eax, eax
jne 0x40c95a
mov dword [esi], 0x64
jmp 0x40c974
mov ecx, dword [esi + 0xe18]
push ecx
call fcn.00408910
lea edx, [esp + 0x14]
mov dword [esi + 0xe18], 0
push edx
call fcn.004071a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret
lea eax, [esp + 0x50]
push str.RESAMPLE
push eax
call ebp
add esp, 8
neg eax
sbb eax, eax
neg eax
add eax, 0x65
mov dword [esi], eax
push 0
lea ecx, [esi + 4]
push 0
push ecx
push str.SampleCycle
lea edx, [esp + 0x20]
push str.Configuration
push edx
push ebx
call fcn.00408950
neg eax
sbb eax, eax
push 0x104
inc eax
lea ecx, [esp + 0x30]
add edi, eax
lea eax, [esi + 8]
push eax
push str.DataDir
push str.Configuration
push ecx
push ebx
call fcn.00408a80
neg eax
sbb eax, eax
lea edx, [esp + 0x84]
inc eax
push 0x200
add edi, eax
push edx
push str.AutoLoad
lea eax, [esp + 0x50]
push str.Configuration
push eax
push ebx
call fcn.00408a80
add esp, 0x4c
lea ecx, [esp + 0x50]
neg eax
sbb eax, eax
push 0x42edf8
inc eax
push ecx
add edi, eax
call ebp
add esp, 8
test eax, eax
je 0x40ca6c
lea edx, [esp + 0x50]
push 0x42e804
push edx
call ebp
add esp, 8
test eax, eax
je 0x40ca6c
lea eax, [esp + 0x50]
push 0x42e800
push eax
call ebp
add esp, 8
test eax, eax
je 0x40ca6c
lea ecx, [esp + 0x50]
push str.LIST
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x40ca41
mov dword [esi + 0x210], 1
jmp 0x40ca76
lea edx, [esp + 0x50]
push str.ONCE
push edx
call ebp
add esp, 8
test eax, eax
jne 0x40ca60
mov dword [esi + 0x210], 3
jmp 0x40ca76
mov dword [esi + 0x210], 0
jmp 0x40ca76
mov dword [esi + 0x210], 2
lea eax, [esi + 0x214]
push 0x200
push eax
push str.AutoLoadDir
lea ecx, [esp + 0x1c]
push str.Configuration
push ecx
push ebx
call fcn.00408a80
neg eax
sbb eax, eax
lea edx, [esi + 0x614]
inc eax
push 0x80
add edi, eax
push edx
push str.AutoLoadFile
lea eax, [esp + 0x34]
push str.Configuration
push eax
push ebx
call fcn.00408a80
lea ebp, [esi + 0x714]
push 0
neg eax
push 0
push ebp
sbb eax, eax
push str.AutoLoadWait
lea ecx, [esp + 0x50]
push str.Configuration
inc eax
push ecx
push ebx
add edi, eax
call fcn.00408950
add esp, 0x4c
lea ecx, [esp + 0x10]
neg eax
sbb eax, eax
xor edx, edx
inc eax
push 0
add edi, eax
mov eax, dword [ebp]
test eax, eax
setl dl
dec edx
and eax, edx
mov dword [ebp], eax
lea eax, [esp + 0x18]
push eax
push 0
push str.t_ShowTtop
push str.Configuration
push ecx
push ebx
call fcn.00408950
fld qword [esp + 0x30]
fmul qword [0x42a3c0]
fld qword [0x42a368]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40cb49
fstp st(0)
fld qword [0x42a368]
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x14]
push 0
push edx
mov dword [esi + 0x718], eax
push 0
push str.t_ShowGoodCR
lea eax, [esp + 0x20]
push str.Configuration
push eax
push ebx
call fcn.00408950
fld qword [esp + 0x30]
fmul qword [0x42a3c0]
fld qword [0x42a368]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40cb9d
fstp st(0)
fld qword [0x42a368]
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x450]
push 0x200
push ecx
push str.t_ButtonsActive
lea edx, [esp + 0x1c]
push str.Configuration
push edx
push ebx
mov dword [esi + 0x71c], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00408a80
neg eax
sbb eax, eax
mov ebp, dword [sym.imp.MSVCRT.dll_swscanf]
inc eax
lea ecx, [esp + 0x2c]
add edi, eax
lea eax, [esp + 0x3c]
push eax
push ecx
lea edx, [esp + 0x470]
push str._lg_lg
push edx
call ebp
fld qword [esp + 0x3c]
fmul qword [0x42a3c0]
add esp, 0x28
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x24]
fmul qword [0x42a3c0]
fld qword [0x42a368]
mov dword [esi + 0x720], eax
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40cc49
fstp st(0)
fld qword [0x42a368]
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x724], eax
lea eax, [esp + 0x14]
push 0
push eax
push 0
push str.LampFlashRate
lea ecx, [esp + 0x20]
push str.Configuration
push ecx
push ebx
call fcn.00408950
fld qword [esp + 0x30]
fmul qword [0x42a3c0]
fld qword [0x42a368]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40cc9d
fstp st(0)
fld qword [0x42a368]
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x14]
push 0
push edx
mov dword [esi + 0x728], eax
push 0
push str.OBDisplayRate
lea eax, [esp + 0x20]
push str.Configuration
push eax
push ebx
call fcn.00408950
fld qword [esp + 0x30]
fmul qword [0x42a3c0]
fld qword [0x42a368]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40ccf1
fstp st(0)
fld qword [0x42a368]
call sub.MSVCRT.dll__ftol
lea ecx, [esi + 0x730]
lea edx, [esp + 0x10]
push ecx
push 0
push 0
push str.OBSysAlarms
push str.Configuration
push edx
push ebx
mov dword [esi + 0x72c], eax
call fcn.00408950
neg eax
sbb eax, eax
push 0x200
inc eax
lea ecx, [esp + 0x30]
add edi, eax
lea eax, [esp + 0x470]
push eax
push str.ReSampleButton
push str.Configuration
push ecx
push ebx
call fcn.00408a80
neg eax
sbb eax, eax
lea edx, [esp + 0x48]
inc eax
push edx
add edi, eax
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x48c]
push str._s_lg
push ecx
call ebp
add esp, 0x44
lea edx, [esp + 0x50]
push 0x42ed74
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40cdd2
lea eax, [esp + 0x50]
push str.NONE
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40cdd2
mov ecx, dword [esp + 0x50]
push ecx
push str.0123456789YG
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x40cdd2
mov eax, dword [esp + 0x50]
cmp al, 0x59
jne 0x40cdc5
mov eax, 0x47
mov dword [esi + 0x734], eax
jmp 0x40cddc
and eax, 0xff
mov dword [esi + 0x734], eax
jmp 0x40cddc
mov dword [esi + 0x734], 0
fld qword [esp + 0x14]
fmul qword [0x42a3c0]
fld qword [0x42a368]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40cdfd
fstp st(0)
fld qword [0x42a368]
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x450]
push 0x200
mov dword [esi + 0x738], eax
push edx
push str.ExtraSampleButton
lea eax, [esp + 0x1c]
push str.Configuration
push eax
push ebx
call fcn.00408a80
neg eax
sbb eax, eax
lea ecx, [esp + 0x2c]
inc eax
lea edx, [esp + 0x68]
add edi, eax
push ecx
push edx
lea eax, [esp + 0x470]
push str._s_lg
push eax
call ebp
lea ecx, [esp + 0x78]
push 0x42ed74
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x30
test eax, eax
je 0x40ceb1
lea edx, [esp + 0x50]
push str.NONE
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40ceb1
mov eax, dword [esp + 0x50]
push eax
push str.0123456789YG
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x40ceb1
mov eax, dword [esp + 0x50]
cmp al, 0x59
jne 0x40cea4
mov eax, 0x47
mov dword [esi + 0x73c], eax
jmp 0x40cebb
and eax, 0xff
mov dword [esi + 0x73c], eax
jmp 0x40cebb
mov dword [esi + 0x73c], 0
fld qword [esp + 0x14]
fmul qword [0x42a3c0]
fld qword [0x42a368]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40cedc
fstp st(0)
fld qword [0x42a368]
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x450]
push 0x200
push ecx
push str.RenewSampleButton
lea edx, [esp + 0x1c]
push str.Configuration
push edx
push ebx
mov dword [esi + 0x740], eax
call fcn.00408a80
neg eax
sbb eax, eax
lea ecx, [esp + 0x68]
inc eax
lea edx, [esp + 0x468]
add edi, eax
lea eax, [esp + 0x2c]
push eax
push ecx
push str._s_lg
push edx
call ebp
lea eax, [esp + 0x78]
push 0x42ed74
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x30
test eax, eax
je 0x40cf90
lea ecx, [esp + 0x50]
push str.NONE
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40cf90
mov edx, dword [esp + 0x50]
push edx
push str.0123456789YG
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x40cf90
mov eax, dword [esp + 0x50]
cmp al, 0x59
jne 0x40cf83
mov eax, 0x47
mov dword [esi + 0x744], eax
jmp 0x40cf9a
and eax, 0xff
mov dword [esi + 0x744], eax
jmp 0x40cf9a
mov dword [esi + 0x744], 0
fld qword [esp + 0x14]
fmul qword [0x42a3c0]
fld qword [0x42a368]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40cfbb
fstp st(0)
fld qword [0x42a368]
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x748], eax
lea eax, [esp + 0x50]
push 0x200
push eax
push str.T_Good_TC
lea ecx, [esp + 0x1c]
push str.Configuration
push ecx
push ebx
call fcn.00408a80
neg eax
sbb eax, eax
lea edx, [esi + 0x760]
inc eax
push edx
add edi, eax
lea eax, [esi + 0x758]
lea ecx, [esi + 0x750]
push eax
push ecx
lea edx, [esp + 0x74]
push str._lg_lg_lg
push edx
call ebp
lea eax, [esp + 0x7c]
push 0x200
push eax
push str.R_Good_TC
lea ecx, [esp + 0x48]
push str.Configuration
push ecx
push ebx
call fcn.00408a80
add esp, 0x44
lea edx, [esi + 0x778]
neg eax
sbb eax, eax
push edx
inc eax
lea ecx, [esi + 0x768]
add edi, eax
lea eax, [esi + 0x770]
push eax
push ecx
lea edx, [esp + 0x5c]
push str._lg_lg_lg
push edx
call ebp
lea eax, [esi + 0x780]
push 0
push eax
push 0
push str.CR_Lim
lea ecx, [esp + 0x34]
push str.Configuration
push ecx
push ebx
call fcn.00408950
neg eax
sbb eax, eax
lea edx, [esi + 0x788]
inc eax
push 0
push edx
add edi, eax
push 0
push str.HR_Lim
lea eax, [esp + 0x50]
push str.Configuration
push eax
push ebx
call fcn.00408950
add esp, 0x4c
lea ecx, [esp + 0x14]
neg eax
sbb eax, eax
push 0
inc eax
push ecx
add edi, eax
push 0
push str.CupOffDelay
lea edx, [esp + 0x20]
push str.Configuration
push edx
push ebx
call fcn.00408950
fld qword [esp + 0x30]
fmul qword [0x42a3c0]
fld qword [0x42a368]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40d0f1
fstp st(0)
fld qword [0x42a368]
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x790], eax
lea eax, [esp + 0x14]
push 0
push eax
push 0
push str.CupOldDelay
lea ecx, [esp + 0x20]
push str.Configuration
push ecx
push ebx
call fcn.00408950
fld qword [esp + 0x30]
fmul qword [0x42a3c0]
fld qword [0x42a368]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40d145
fstp st(0)
fld qword [0x42a368]
call sub.MSVCRT.dll__ftol
lea edx, [esi + 0x798]
push 0
push edx
mov dword [esi + 0x794], eax
push 0
push str.T_DipStart
lea eax, [esp + 0x20]
push str.Configuration
push eax
push ebx
call fcn.00408950
lea ecx, [esp + 0x6c]
push 0x200
neg eax
push ecx
push str.t_DipLamp
sbb eax, eax
lea edx, [esp + 0x38]
push str.Configuration
inc eax
push edx
push ebx
add edi, eax
call fcn.00408a80
neg eax
sbb eax, eax
lea ecx, [esp + 0x48]
inc eax
lea edx, [esp + 0x84]
add edi, eax
lea eax, [esp + 0x58]
push eax
push ecx
push str._lg_lg
push edx
call ebp
fld qword [esp + 0x58]
fmul qword [0x42a3c0]
fld qword [0x42a368]
add esp, 0x44
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40d1da
fstp st(0)
fld qword [0x42a368]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x24]
fmul qword [0x42a3c0]
fld qword [0x42a368]
mov dword [esi + 0x7a0], eax
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40d206
fstp st(0)
fld qword [0x42a368]
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x7a4], eax
lea eax, [esp + 0x14]
push 0
push eax
push 0
push str.t_SampleMax
lea ecx, [esp + 0x20]
push str.Configuration
push ecx
push ebx
call fcn.00408950
fld qword [esp + 0x30]
fmul qword [0x42a3c0]
fld qword [0x42a368]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40d25a
fstp st(0)
fld qword [0x42a368]
call sub.MSVCRT.dll__ftol
lea edx, [esi + 0x7b0]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
push edx
push 0
push 0
push str.Save_TC_Pos
fstp qword [esi + 0x7a8]
lea eax, [esp + 0x20]
push str.Configuration
push eax
push ebx
call fcn.00408950
lea ecx, [esi + 0x7b4]
push 0x104
neg eax
push ecx
push str.DumpRaw
sbb eax, eax
lea edx, [esp + 0x38]
push str.Configuration
inc eax
push edx
push ebx
add edi, eax
call fcn.00408a80
lea eax, [esp + 0x484]
push 0x200
push eax
push str.DS_ComPort
lea ecx, [esp + 0x50]
push str.Hardware
push ecx
push ebx
call fcn.00408a80
add esp, 0x4c
lea edx, [esi + 0xad8]
neg eax
sbb eax, eax
push 0
inc eax
push 0x2580
add edi, eax
lea eax, [esp + 0x458]
push edx
push eax
call fcn.00408b60
lea ecx, [esp + 0x460]
push 0x200
push ecx
push str.BR_ComPort
lea edx, [esp + 0x2c]
push str.Hardware
push edx
push ebx
call fcn.00408a80
neg eax
sbb eax, eax
lea ebp, [esi + 0xb18]
inc eax
push ebp
add edi, eax
lea eax, [esi + 0xa00]
push 0x2580
lea ecx, [esp + 0x480]
push eax
push ecx
call fcn.00408b60
lea edx, [esp + 0x488]
push 0x200
push edx
push str.OB_ComPort
lea eax, [esp + 0x54]
push str.Hardware
push eax
push ebx
call fcn.00408a80
add esp, 0x50
neg eax
sbb eax, eax
push ebp
lea ecx, [esi + 0xbb4]
push 0x12c0
lea edx, [esp + 0x458]
inc eax
push ecx
push edx
add edi, eax
call fcn.00408b60
lea eax, [esp + 0x460]
push 0x200
push eax
push str.OB_LButton
lea ecx, [esp + 0x2c]
push str.Hardware
push ecx
push ebx
call fcn.00408a80
add esp, 0x28
neg eax
sbb eax, eax
inc eax
add edi, eax
cmp word [esp + 0x450], 0
je 0x40d434
lea edx, [esp + 0x450]
mov dword [esp + 0x20], 0
test edx, edx
lea ebp, [esp + 0x450]
je 0x40d434
lea eax, [esi + 0xc98]
mov dword [esp + 0x1c], eax
cmp word [ebp], 0
je 0x40d434
cmp dword [esp + 0x20], 3
jge 0x40d434
push 0x200
lea ecx, [esp + 0x54]
push 9
push ecx
push ebp
call fcn.0041b3b0
mov ebp, eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x60]
push 0x20
push edx
push eax
call fcn.0041b690
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
add esp, 0x1c
inc edx
add ecx, 0x40
mov dword [esp + 0x20], edx
test ebp, ebp
mov dword [esp + 0x1c], ecx
jne 0x40d3e6
lea ecx, [esp + 0x450]
push 0x200
push ecx
push str.OB_RButton
lea edx, [esp + 0x1c]
push str.Hardware
push edx
push ebx
call fcn.00408a80
add esp, 0x18
neg eax
sbb eax, eax
inc eax
add edi, eax
cmp word [esp + 0x450], 0
je 0x40d4dd
lea eax, [esp + 0x450]
mov dword [esp + 0x20], 0
test eax, eax
lea ebp, [esp + 0x450]
je 0x40d4dd
lea ecx, [esi + 0xd58]
mov dword [esp + 0x1c], ecx
cmp word [ebp], 0
je 0x40d4dd
cmp dword [esp + 0x20], 3
jge 0x40d4dd
push 0x200
lea edx, [esp + 0x54]
push 9
push edx
push ebp
call fcn.0041b3b0
mov ecx, dword [esp + 0x2c]
mov ebp, eax
lea eax, [esp + 0x60]
push 0x20
push eax
push ecx
call fcn.0041b690
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
add esp, 0x1c
inc edx
add ecx, 0x40
mov dword [esp + 0x20], edx
test ebp, ebp
mov dword [esp + 0x1c], ecx
jne 0x40d48f
lea edx, [esp + 0x450]
push 0x200
push edx
push str.OB_Brightness
lea eax, [esp + 0x1c]
push str.Hardware
push eax
push ebx
call fcn.00408a80
neg eax
mov ebp, dword [sym.imp.MSVCRT.dll_swscanf]
lea ecx, [esi + 0xc94]
sbb eax, eax
lea edx, [esi + 0xc90]
inc eax
push ecx
add edi, eax
push edx
lea eax, [esp + 0x470]
push str._d_d
push eax
call ebp
lea ecx, [esi + 0x9c0]
lea edx, [esp + 0x38]
push ecx
push 0
push 0
push str.TC_Sensor
push str.Hardware
push edx
push ebx
call fcn.00408950
add esp, 0x44
lea ecx, [esp + 0x10]
neg eax
sbb eax, eax
push 0x200
inc eax
add edi, eax
lea eax, [esp + 0x54]
push eax
push str.TCLoc_Linear
push str.Hardware
push ecx
push ebx
call fcn.00408a80
neg eax
sbb eax, eax
lea edx, [esi + 0x9d8]
inc eax
push edx
add edi, eax
lea eax, [esi + 0x9d0]
lea ecx, [esi + 0x9c8]
push eax
push ecx
lea edx, [esp + 0x74]
push str._lg_lg_lg
push edx
call ebp
lea eax, [esp + 0x7c]
push 0x200
push eax
push str.TCLoc_CupOn
lea ecx, [esp + 0x48]
push str.Hardware
push ecx
push ebx
call fcn.00408a80
add esp, 0x44
lea ebp, [esi + 0x9e8]
neg eax
sbb eax, eax
lea edx, [esi + 0x9e0]
inc eax
push ebp
add edi, eax
push edx
lea eax, [esp + 0x58]
push str._lg_lg
push eax
call dword [sym.imp.MSVCRT.dll_swscanf]
add esp, 0x10
cmp eax, 2
jge 0x40d5f7
mov dword [ebp], 0
mov dword [ebp + 4], 0x40f86a00
mov eax, dword [esp + 0x2c]
xor ebp, ebp
test eax, eax
jle 0x40d650
lea eax, [ebp + 1]
lea ecx, [esp + 0x30]
push eax
push 0x42f840
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.MSVCRT.dll_swprintf]
mov edx, dword [esi + 0xe18]
push 2
lea ecx, [esp + 0x40]
mov eax, dword [edx + ebp*4]
lea edx, [esp + 0x20]
push eax
push ecx
push str.AutoLoadFiles
push edx
push ebx
call fcn.00408a80
add esp, 0x24
mov ebp, dword [esp + 0x1c]
neg eax
sbb eax, eax
inc eax
add edi, eax
mov eax, dword [esp + 0x2c]
cmp ebp, eax
jl 0x40d601
lea eax, [esp + 0x10]
push eax
call fcn.004071a0
add esp, 4
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
sete al
add esp, 0x840
ret