Function at 0x40c510
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.00406a40
add esp, 8
test eax, eax
jne 0x40c544
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.00408630
lea edx, [esp + 0x14]
push str.AutoLoadFiles
push edx
mov dword [esi + 0xe18], edi
call fcn.00407020
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 0x40c5a5
lea ecx, [esp + 0x10]
push ecx
call fcn.00406ed0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret
test ebp, ebp
jle 0x40c5d3
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 0x40c61a
inc edi
cmp edi, ebp
jl 0x40c5a9
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.004087a0
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 0x40c64a
mov dword [esi], 0x64
jmp 0x40c664
mov ecx, dword [esi + 0xe18]
push ecx
call fcn.00408630
lea edx, [esp + 0x14]
mov dword [esi + 0xe18], 0
push edx
call fcn.00406ed0
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.00408670
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.004087a0
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.004087a0
add esp, 0x4c
lea ecx, [esp + 0x50]
neg eax
sbb eax, eax
push 0x454488
inc eax
push ecx
add edi, eax
call ebp
add esp, 8
test eax, eax
je 0x40c75c
lea edx, [esp + 0x50]
push 0x453e94
push edx
call ebp
add esp, 8
test eax, eax
je 0x40c75c
lea eax, [esp + 0x50]
push 0x453e90
push eax
call ebp
add esp, 8
test eax, eax
je 0x40c75c
lea ecx, [esp + 0x50]
push str.LIST
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x40c731
mov dword [esi + 0x210], 1
jmp 0x40c766
lea edx, [esp + 0x50]
push str.ONCE
push edx
call ebp
add esp, 8
test eax, eax
jne 0x40c750
mov dword [esi + 0x210], 3
jmp 0x40c766
mov dword [esi + 0x210], 0
jmp 0x40c766
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.004087a0
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.004087a0
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.00408670
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.00408670
fld qword [esp + 0x30]
fmul qword [0x44e4a8]
fld qword [0x44e440]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40c839
fstp st(0)
fld qword [0x44e440]
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.00408670
fld qword [esp + 0x30]
fmul qword [0x44e4a8]
fld qword [0x44e440]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40c88d
fstp st(0)
fld qword [0x44e440]
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.004087a0
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 [0x44e4a8]
add esp, 0x28
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x24]
fmul qword [0x44e4a8]
fld qword [0x44e440]
mov dword [esi + 0x720], eax
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40c939
fstp st(0)
fld qword [0x44e440]
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.00408670
fld qword [esp + 0x30]
fmul qword [0x44e4a8]
fld qword [0x44e440]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40c98d
fstp st(0)
fld qword [0x44e440]
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.00408670
fld qword [esp + 0x30]
fmul qword [0x44e4a8]
fld qword [0x44e440]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40c9e1
fstp st(0)
fld qword [0x44e440]
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.00408670
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.004087a0
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 0x454404
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40cab7
lea eax, [esp + 0x50]
push str.NONE
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40cab7
mov ecx, dword [esp + 0x50]
push ecx
push str.0123456789YG
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x40cab7
mov al, byte [esp + 0x50]
cmp al, 0x59
jne 0x40caaa
mov al, 0x47
and eax, 0xff
mov dword [esi + 0x734], eax
jmp 0x40cac1
mov dword [esi + 0x734], 0
fld qword [esp + 0x14]
fmul qword [0x44e4a8]
fld qword [0x44e440]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40cae2
fstp st(0)
fld qword [0x44e440]
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.004087a0
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 0x454404
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x30
test eax, eax
je 0x40cb8b
lea edx, [esp + 0x50]
push str.NONE
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40cb8b
mov eax, dword [esp + 0x50]
push eax
push str.0123456789YG
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x40cb8b
mov al, byte [esp + 0x50]
cmp al, 0x59
jne 0x40cb7e
mov al, 0x47
and eax, 0xff
mov dword [esi + 0x73c], eax
jmp 0x40cb95
mov dword [esi + 0x73c], 0
fld qword [esp + 0x14]
fmul qword [0x44e4a8]
fld qword [0x44e440]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40cbb6
fstp st(0)
fld qword [0x44e440]
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.004087a0
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 0x454404
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x30
test eax, eax
je 0x40cc5f
lea ecx, [esp + 0x50]
push str.NONE
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40cc5f
mov edx, dword [esp + 0x50]
push edx
push str.0123456789YG
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x40cc5f
mov al, byte [esp + 0x50]
cmp al, 0x59
jne 0x40cc52
mov al, 0x47
and eax, 0xff
mov dword [esi + 0x744], eax
jmp 0x40cc69
mov dword [esi + 0x744], 0
fld qword [esp + 0x14]
fmul qword [0x44e4a8]
fld qword [0x44e440]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40cc8a
fstp st(0)
fld qword [0x44e440]
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.004087a0
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.004087a0
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.00408670
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.00408670
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.00408670
fld qword [esp + 0x30]
fmul qword [0x44e4a8]
fld qword [0x44e440]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40cdc0
fstp st(0)
fld qword [0x44e440]
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.00408670
fld qword [esp + 0x30]
fmul qword [0x44e4a8]
fld qword [0x44e440]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40ce14
fstp st(0)
fld qword [0x44e440]
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.00408670
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.004087a0
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 [0x44e4a8]
fld qword [0x44e440]
add esp, 0x44
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40cea9
fstp st(0)
fld qword [0x44e440]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x24]
fmul qword [0x44e4a8]
fld qword [0x44e440]
mov dword [esi + 0x7a0], eax
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40ced5
fstp st(0)
fld qword [0x44e440]
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.00408670
fld qword [esp + 0x30]
fmul qword [0x44e4a8]
fld qword [0x44e440]
add esp, 0x1c
neg eax
sbb eax, eax
fcomp st(1)
inc eax
add edi, eax
fnstsw ax
test ah, 0x41
jne 0x40cf29
fstp st(0)
fld qword [0x44e440]
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.00408670
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.004087a0
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.004087a0
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.00408880
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.004087a0
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.00408880
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.004087a0
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.00408880
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.004087a0
add esp, 0x28
neg eax
sbb eax, eax
inc eax
add edi, eax
cmp word [esp + 0x450], 0
je 0x40d103
lea edx, [esp + 0x450]
mov dword [esp + 0x20], 0
test edx, edx
lea ebp, [esp + 0x450]
je 0x40d103
lea eax, [esi + 0xc98]
mov dword [esp + 0x1c], eax
cmp word [ebp], 0
je 0x40d103
cmp dword [esp + 0x20], 3
jge 0x40d103
push 0x200
lea ecx, [esp + 0x54]
push 9
push ecx
push ebp
call fcn.00438680
mov ebp, eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x60]
push 0x20
push edx
push eax
call fcn.00438940
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 0x40d0b5
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.004087a0
add esp, 0x18
neg eax
sbb eax, eax
inc eax
add edi, eax
cmp word [esp + 0x450], 0
je 0x40d1ac
lea eax, [esp + 0x450]
mov dword [esp + 0x20], 0
test eax, eax
lea ebp, [esp + 0x450]
je 0x40d1ac
lea ecx, [esi + 0xd58]
mov dword [esp + 0x1c], ecx
cmp word [ebp], 0
je 0x40d1ac
cmp dword [esp + 0x20], 3
jge 0x40d1ac
push 0x200
lea edx, [esp + 0x54]
push 9
push edx
push ebp
call fcn.00438680
mov ecx, dword [esp + 0x2c]
mov ebp, eax
lea eax, [esp + 0x60]
push 0x20
push eax
push ecx
call fcn.00438940
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 0x40d15e
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.004087a0
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.00408670
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.004087a0
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.004087a0
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 0x40d2c6
mov dword [ebp], 0
mov dword [ebp + 4], 0x40f86a00
mov eax, dword [esp + 0x2c]
xor ebp, ebp
test eax, eax
jle 0x40d31f
lea eax, [ebp + 1]
lea ecx, [esp + 0x30]
push eax
push 0x454ed8
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.004087a0
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 0x40d2d0
lea eax, [esp + 0x10]
push eax
call fcn.00406ed0
add esp, 4
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
sete al
add esp, 0x840
ret