Function at 0x4096c0
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.00404320
add esp, 8
test eax, eax
jne 0x4096f4
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.00405ad0
lea edx, [esp + 0x14]
push str.AutoLoadFiles
push edx
mov dword [esi + 0xe18], edi
call fcn.004048e0
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 0x409755
lea ecx, [esp + 0x10]
push ecx
call fcn.004047b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret
test ebp, ebp
jle 0x409783
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 0x4097ca
inc edi
cmp edi, ebp
jl 0x409759
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.00405c40
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 0x4097fa
mov dword [esi], 0x64
jmp 0x409814
mov ecx, dword [esi + 0xe18]
push ecx
call fcn.00405ad0
lea edx, [esp + 0x14]
mov dword [esi + 0xe18], 0
push edx
call fcn.004047b0
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.00405b10
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.00405c40
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.00405c40
add esp, 0x4c
lea ecx, [esp + 0x50]
neg eax
sbb eax, eax
push 0x42abbc
inc eax
push ecx
add edi, eax
call ebp
add esp, 8
test eax, eax
je 0x40990c
lea edx, [esp + 0x50]
push 0x42a5c8
push edx
call ebp
add esp, 8
test eax, eax
je 0x40990c
lea eax, [esp + 0x50]
push 0x42a5c4
push eax
call ebp
add esp, 8
test eax, eax
je 0x40990c
lea ecx, [esp + 0x50]
push str.LIST
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4098e1
mov dword [esi + 0x210], 1
jmp 0x409916
lea edx, [esp + 0x50]
push str.ONCE
push edx
call ebp
add esp, 8
test eax, eax
jne 0x409900
mov dword [esi + 0x210], 3
jmp 0x409916
mov dword [esi + 0x210], 0
jmp 0x409916
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.00405c40
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.00405c40
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.00405b10
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.00405b10
fld qword [esp + 0x30]
fmul qword [0x426348]
fld qword [0x426300]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x4099e9
fstp st(0)
fld qword [0x426300]
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.00405b10
fld qword [esp + 0x30]
fmul qword [0x426348]
fld qword [0x426300]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x409a3d
fstp st(0)
fld qword [0x426300]
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.00405c40
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 [0x426348]
add esp, 0x28
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x24]
fmul qword [0x426348]
fld qword [0x426300]
mov dword [esi + 0x720], eax
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x409ae9
fstp st(0)
fld qword [0x426300]
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.00405b10
fld qword [esp + 0x30]
fmul qword [0x426348]
fld qword [0x426300]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x409b3d
fstp st(0)
fld qword [0x426300]
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.00405b10
fld qword [esp + 0x30]
fmul qword [0x426348]
fld qword [0x426300]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x409b91
fstp st(0)
fld qword [0x426300]
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.00405b10
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.00405c40
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 0x42ab38
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x409c72
lea eax, [esp + 0x50]
push str.NONE
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x409c72
mov ecx, dword [esp + 0x50]
push ecx
push str.0123456789YG
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x409c72
mov eax, dword [esp + 0x50]
cmp al, 0x59
jne 0x409c65
mov eax, 0x47
mov dword [esi + 0x734], eax
jmp 0x409c7c
and eax, 0xff
mov dword [esi + 0x734], eax
jmp 0x409c7c
mov dword [esi + 0x734], 0
fld qword [esp + 0x14]
fmul qword [0x426348]
fld qword [0x426300]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x409c9d
fstp st(0)
fld qword [0x426300]
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.00405c40
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 0x42ab38
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x30
test eax, eax
je 0x409d51
lea edx, [esp + 0x50]
push str.NONE
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x409d51
mov eax, dword [esp + 0x50]
push eax
push str.0123456789YG
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x409d51
mov eax, dword [esp + 0x50]
cmp al, 0x59
jne 0x409d44
mov eax, 0x47
mov dword [esi + 0x73c], eax
jmp 0x409d5b
and eax, 0xff
mov dword [esi + 0x73c], eax
jmp 0x409d5b
mov dword [esi + 0x73c], 0
fld qword [esp + 0x14]
fmul qword [0x426348]
fld qword [0x426300]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x409d7c
fstp st(0)
fld qword [0x426300]
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.00405c40
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 0x42ab38
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x30
test eax, eax
je 0x409e30
lea ecx, [esp + 0x50]
push str.NONE
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x409e30
mov edx, dword [esp + 0x50]
push edx
push str.0123456789YG
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x409e30
mov eax, dword [esp + 0x50]
cmp al, 0x59
jne 0x409e23
mov eax, 0x47
mov dword [esi + 0x744], eax
jmp 0x409e3a
and eax, 0xff
mov dword [esi + 0x744], eax
jmp 0x409e3a
mov dword [esi + 0x744], 0
fld qword [esp + 0x14]
fmul qword [0x426348]
fld qword [0x426300]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x409e5b
fstp st(0)
fld qword [0x426300]
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.00405c40
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.00405c40
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.00405b10
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.00405b10
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.00405b10
fld qword [esp + 0x30]
fmul qword [0x426348]
fld qword [0x426300]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x409f91
fstp st(0)
fld qword [0x426300]
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.00405b10
fld qword [esp + 0x30]
fmul qword [0x426348]
fld qword [0x426300]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x409fe5
fstp st(0)
fld qword [0x426300]
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.00405b10
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.00405c40
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 [0x426348]
fld qword [0x426300]
add esp, 0x44
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40a07a
fstp st(0)
fld qword [0x426300]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x24]
fmul qword [0x426348]
fld qword [0x426300]
mov dword [esi + 0x7a0], eax
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40a0a6
fstp st(0)
fld qword [0x426300]
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.00405b10
fld qword [esp + 0x30]
fmul qword [0x426348]
fld qword [0x426300]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40a0fa
fstp st(0)
fld qword [0x426300]
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.00405b10
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.00405c40
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.00405c40
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.00405d20
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.00405c40
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.00405d20
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.00405c40
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.00405d20
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.00405c40
add esp, 0x28
neg eax
sbb eax, eax
inc eax
add edi, eax
cmp word [esp + 0x450], 0
je 0x40a2d4
lea edx, [esp + 0x450]
mov dword [esp + 0x20], 0
test edx, edx
lea ebp, [esp + 0x450]
je 0x40a2d4
lea eax, [esi + 0xc98]
mov dword [esp + 0x1c], eax
cmp word [ebp], 0
je 0x40a2d4
cmp dword [esp + 0x20], 3
jge 0x40a2d4
push 0x200
lea ecx, [esp + 0x54]
push 9
push ecx
push ebp
call fcn.00422ce0
mov ebp, eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x60]
push 0x20
push edx
push eax
call fcn.00422fc0
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 0x40a286
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.00405c40
add esp, 0x18
neg eax
sbb eax, eax
inc eax
add edi, eax
cmp word [esp + 0x450], 0
je 0x40a37d
lea eax, [esp + 0x450]
mov dword [esp + 0x20], 0
test eax, eax
lea ebp, [esp + 0x450]
je 0x40a37d
lea ecx, [esi + 0xd58]
mov dword [esp + 0x1c], ecx
cmp word [ebp], 0
je 0x40a37d
cmp dword [esp + 0x20], 3
jge 0x40a37d
push 0x200
lea edx, [esp + 0x54]
push 9
push edx
push ebp
call fcn.00422ce0
mov ecx, dword [esp + 0x2c]
mov ebp, eax
lea eax, [esp + 0x60]
push 0x20
push eax
push ecx
call fcn.00422fc0
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 0x40a32f
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.00405c40
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.00405b10
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.00405c40
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.00405c40
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 0x40a497
mov dword [ebp], 0
mov dword [ebp + 4], 0x40f86a00
mov eax, dword [esp + 0x2c]
xor ebp, ebp
test eax, eax
jle 0x40a4f0
lea eax, [ebp + 1]
lea ecx, [esp + 0x30]
push eax
push 0x42b604
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.00405c40
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 0x40a4a1
lea eax, [esp + 0x10]
push eax
call fcn.004047b0
add esp, 4
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
sete al
add esp, 0x840
ret