Function at 0x41eb10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484194
mov eax, dword fs:[0]
push eax
mov eax, 0x6d614
call fcn.0047e920
mov eax, dword [0x4a4b34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004019b5
mov ebx, dword [ebp - 0x6d620]
xor eax, eax
mov dword [0x4a4d20], eax
mov dword [0x4a4d1c], 0x100
mov dword [0x4a4d18], 0x290
mov dword [0x4a4d14], 0x5b0
mov dword [0x4ac338], eax
mov dword [0x4ac33c], eax
mov dword [0x4ac340], eax
mov dword [0x4ac344], eax
mov dword [0x4ac348], eax
mov dword [0x4ac34c], eax
mov dword [0x4ac350], eax
mov dword [0x4ac354], eax
mov dword [0x4ac358], eax
mov dword [0x4ac35c], eax
mov dword [ebp - 0x6d614], eax
push 0x493ba8
mov ecx, 0x4ac724
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x41ec39
xor edi, edi
lea esp, [esp]
push 2
push 0
push esi
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x41ebf9
push esi
call dword [sym.imp.MSVCR100.dll_ftell]
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x41ebf9
inc edi
cmp edi, 1
jl 0x41ebd0
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp edi, 1
je 0x41ec1c
mov eax, dword [ebp - 0x6d614]
inc eax
mov dword [ebp - 0x6d614], eax
cmp eax, 0xa
jl 0x41ebaa
jmp 0x41ec39
cmp ebx, 0x3d0900
jae 0x41ec39
mov ecx, 0x4ac724
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.MSVCR100.dll__unlink]
add esp, 4
cmp dword [ebp - 0x6d614], 0xa
jne 0x41ec57
mov ecx, 0x4ac724
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.MSVCR100.dll__unlink]
add esp, 4
xor ebx, ebx
lea esp, [esp]
push 0x493ba8
mov ecx, 0x4ac724
call dword [sym.imp.mfc100.dll_Ordinal_1448]
mov esi, dword [sym.imp.MSVCR100.dll_fopen]
push eax
call esi
add esp, 8
test eax, eax
jne 0x41ed11
push 0x6d600
push eax
lea eax, [ebp - 0x6d610]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x492a54
mov ecx, 0x4ac724
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call esi
mov esi, eax
add esp, 8
test esi, esi
je 0x41ecf6
xor edi, edi
jmp 0x41ecc0
push esi
push 0x1f40
lea ecx, [ebp - 0x6d610]
push 0x38
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 0x1f40
jne 0x41ece5
inc edi
cmp edi, 8
jle 0x41ecc0
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp edi, 8
jg 0x41ed1b
jmp 0x41ed05
push 0x42
push str.FileFunc.cpp
call fcn.00402fe5
add esp, 8
inc ebx
cmp ebx, 0xa
jl 0x41ec60
jmp 0x41ed1b
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp ebx, 0xa
jne 0x41ed2f
push 0x4a
push str.FileFunc.cpp
call fcn.00402fe5
add esp, 8
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
mov dword [ebp - 0x6d614], 0
nop
push 0x493ba8
mov ecx, 0x4ac72c
call dword [sym.imp.mfc100.dll_Ordinal_1448]
mov edi, dword [sym.imp.MSVCR100.dll_fopen]
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x41edd6
xor edi, edi
push esi
push 0x100
push 1
push 0x4ac360
call ebx
add esp, 0x10
cmp eax, 0x100
jne 0x41edbe
push esi
push 0x64
push 4
push 0x4a7b30
call ebx
add esp, 0x10
cmp eax, 0x64
jne 0x41edbe
push esi
push eax
push 8
push 0x4a7e98
call ebx
add esp, 0x10
cmp eax, 0x64
jne 0x41edbe
push esi
push 0x32
push 4
push 0x4a7a68
call ebx
add esp, 0x10
cmp eax, 0x32
jne 0x41edbe
inc edi
cmp edi, 1
jl 0x41ed64
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp edi, 1
je 0x41ef26
jmp 0x41efb1
push str.System_Parameter_Loading_Failed___val_
lea ecx, [ebp - 0x6d618]
call dword [sym.imp.mfc100.dll_Ordinal_310]
lea ecx, [ebp - 0x6d618]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
push 0x8c42b4
call fcn.00401857
add esp, 8
push str._n_n_1__Do_INI_Backup_and_send_backup_file_to_Aurotek._n_2_Do_INI_Load_to_load_Old_Parameter.
lea ecx, [ebp - 0x6d618]
call dword [sym.imp.mfc100.dll_Ordinal_1483]
push 0
push 0
lea ecx, [ebp - 0x6d618]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call sub.mfc100.dll_Ordinal_1982
push 0x100
push 0
push 0x4ac360
call sub.MSVCR100.dll_memset
push 0x190
push 0
push 0x4a7b30
call sub.MSVCR100.dll_memset
push 0x320
push 0
push 0x4a7e98
call sub.MSVCR100.dll_memset
push 0xc8
push 0
push 0x4a7a68
call sub.MSVCR100.dll_memset
add esp, 0x30
push 0x492a54
mov ecx, 0x4ac72c
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x41ef89
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
xor edi, edi
mov edi, edi
push esi
push 0x100
push 1
push 0x4ac360
call ebx
add esp, 0x10
cmp eax, 0x100
jne 0x41eefa
push esi
push 0x64
push 4
push 0x4a7b30
call ebx
add esp, 0x10
cmp eax, 0x64
jne 0x41eefa
push esi
push eax
push 8
push 0x4a7e98
call ebx
add esp, 0x10
cmp eax, 0x64
jne 0x41eefa
push esi
push 0x32
push 4
push 0x4a7a68
call ebx
add esp, 0x10
cmp eax, 0x32
jne 0x41eefa
inc edi
cmp edi, 1
jl 0x41eea0
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp edi, 1
jne 0x41ef98
lea ecx, [ebp - 0x6d618]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
mov dword [ebp - 0x6d614], 0
push 0x493ba8
mov ecx, 0x4ac728
call dword [sym.imp.mfc100.dll_Ordinal_1448]
mov edi, dword [sym.imp.MSVCR100.dll_fopen]
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x41efcc
xor edi, edi
push esi
push 4
push 0x138
push 0x4a74c0
call ebx
add esp, 0x10
cmp eax, 4
jne 0x41ef71
inc edi
cmp edi, 1
jl 0x41ef54
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp edi, 1
je 0x41f0b1
jmp 0x41f086
push 0x75
push str.FileFunc.cpp
call fcn.00402fe5
add esp, 8
lea ecx, [ebp - 0x6d618]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
mov eax, dword [ebp - 0x6d614]
inc eax
mov dword [ebp - 0x6d614], eax
cmp eax, 0xa
jl 0x41ed40
jmp 0x41ef26
push str.System_Parameter_Loading_Failed___par_
lea ecx, [ebp - 0x6d618]
call dword [sym.imp.mfc100.dll_Ordinal_310]
lea ecx, [ebp - 0x6d618]
mov dword [ebp - 4], 1
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
push 0x8c42b4
call fcn.00401857
add esp, 8
push str._n_n_1__Do_INI_Backup_and_send_backup_file_to_Aurotek._n_2_Do_INI_Load_to_load_Old_Parameter.
lea ecx, [ebp - 0x6d618]
call dword [sym.imp.mfc100.dll_Ordinal_1483]
push 0
push 0
lea ecx, [ebp - 0x6d618]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call sub.mfc100.dll_Ordinal_1982
push 0x492a54
mov ecx, 0x4ac728
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x41f073
xor edi, edi
push esi
push 4
push 0x138
push 0x4a74c0
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 4
jne 0x41f064
inc edi
cmp edi, 1
jl 0x41f043
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp edi, 1
je 0x41f09e
lea ecx, [ebp - 0x6d618]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov eax, dword [ebp - 0x6d614]
inc eax
mov dword [ebp - 0x6d614], eax
cmp eax, 0xa
jl 0x41ef30
jmp 0x41f0b1
lea ecx, [ebp - 0x6d618]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp - 0x6d614], 0xa
jne 0x41f0cc
push 0x95
push str.FileFunc.cpp
call fcn.00402fe5
add esp, 8
mov dword [ebp - 0x6d614], 0
jmp 0x41f0e0
push 0x493ba8
mov ecx, 0x4ac730
call dword [sym.imp.mfc100.dll_Ordinal_1448]
mov edi, dword [sym.imp.MSVCR100.dll_fopen]
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x41f19f
xor edi, edi
push esi
push 0x7d0
push 8
push 0x4a81b8
call ebx
add esp, 0x10
cmp eax, 0x7d0
jne 0x41f127
inc edi
cmp edi, 1
jl 0x41f108
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp edi, 1
jne 0x41f2bf
cmp dword [ebp - 0x6d614], 0xa
jne 0x41f155
push 0xb9
push str.FileFunc.cpp
call fcn.00402fe5
add esp, 8
push 0x12f
call fcn.00402e7d
fst qword [ebp - 0x6d61c]
fldz
add esp, 4
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x41f2da
fstp st(0)
fld qword [0x493ac8]
sub esp, 8
fstp qword [esp]
push 0x12f
call fcn.0040183e
fld qword [ebp - 0x6d61c]
add esp, 0xc
jmp 0x41f30a
push str.System_Parameter_Loading_Failed___pot_
lea ecx, [ebp - 0x6d620]
call dword [sym.imp.mfc100.dll_Ordinal_310]
lea ecx, [ebp - 0x6d620]
mov dword [ebp - 4], 2
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
push 0x8c42b4
call fcn.00401857
add esp, 8
push str._n_n_1__Do_INI_Backup_and_send_backup_file_to_Aurotek._n_2_Do_INI_Load_to_load_Old_Parameter.
lea ecx, [ebp - 0x6d620]
call dword [sym.imp.mfc100.dll_Ordinal_1483]
push 0
push 0
lea ecx, [ebp - 0x6d620]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call sub.mfc100.dll_Ordinal_1982
push 0x492a54
mov ecx, 0x4ac730
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x41f29a
fld qword [0x492ba8]
mov dword [ebp - 0x6d614], 0x1f4
mov edx, 0x4a81b8
mov eax, edx
mov ecx, 0x1f4
fst qword [eax]
add eax, 0x20
dec ecx
jne 0x41f234
add edx, 8
cmp edx, 0x4a81d8
jl 0x41f22d
fstp st(0)
xor edi, edi
jmp 0x41f250
push esi
push 0x7d0
push 8
push 0x4a81b8
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 0x7d0
jne 0x41f273
inc edi
cmp edi, 1
jl 0x41f250
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp edi, 1
jne 0x41f2ac
lea ecx, [ebp - 0x6d620]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc100.dll_Ordinal_901]
jmp 0x41f155
push 0xb4
push str.FileFunc.cpp
call fcn.00402fe5
add esp, 8
lea ecx, [ebp - 0x6d620]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov eax, dword [ebp - 0x6d614]
inc eax
mov dword [ebp - 0x6d614], eax
cmp eax, 0xa
jl 0x41f0e0
jmp 0x41f13a
fld qword [0x492110]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x41f2f0
fstp st(1)
jmp 0x41f181
fstp st(0)
fld qword [0x492120]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x41f308
fstp st(1)
jmp 0x41f181
fstp st(0)
push 0x130
call fcn.00402e7d
fst qword [ebp - 0x6d61c]
fldz
add esp, 4
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x41f336
fstp st(0)
fstp st(0)
fld qword [0x493a88]
jmp 0x41f369
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x41f358
sub esp, 8
fstp qword [esp]
push 0x130
call fcn.0040183e
fld qword [ebp - 0x6d61c]
add esp, 0xc
fld qword [0x4920d0]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x41f37e
fstp st(1)
sub esp, 8
fstp qword [esp]
push 0x130
call fcn.0040183e
add esp, 0xc
jmp 0x41f393
fstp st(0)
fld qword [0x4920e0]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x41f369
fstp st(0)
push 0xcf
call fcn.0040209a
mov esi, eax
add esp, 4
test esi, esi
jne 0x41f3aa
push 2
jmp 0x41f3c5
cmp esi, 1
jge 0x41f3be
push 1
push 0xcf
call fcn.004014a6
add esp, 8
cmp esi, 5
jle 0x41f3d2
push 5
push 0xcf
call fcn.004014a6
add esp, 8
push 0xd0
call fcn.0040209a
mov esi, eax
add esp, 4
cmp esi, 1
jge 0x41f3f5
push 1
push 0xd0
call fcn.004014a6
add esp, 8
cmp esi, 9
jle 0x41f409
push 9
push 0xd0
call fcn.004014a6
add esp, 8
push 0xd2
call fcn.0040209a
add esp, 4
test eax, eax
jne 0x41f429
push 0x64
push 0xd2
call fcn.004014a6
add esp, 8
push 0xd3
call fcn.0040209a
add esp, 4
test eax, eax
jne 0x41f449
push 2
push 0xd3
call fcn.004014a6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047e7ac
mov esp, ebp
pop ebp
ret