Function at 0x41df50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0378
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4eed38]
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
mov ebx, ecx
call fcn.00459da6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41df97
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebx + 0x170]
mov dword [ebp - 4], 0
call fcn.00445900
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 0xc], 0
mov byte [ebp - 4], 1
jne 0x41e04e
lea eax, [ebp - 0x14]
push str.NV_save_to_local:_the_path_is_empty.
push eax
call fcn.00401ce0
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
add edx, 0x9e
add esp, 8
mov eax, esi
sub edx, esi
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41dff0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], cl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e021
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e044
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x41e3ec
call fcn.00459da6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41e068
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x38]
push ecx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.00459da6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41e09f
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x1af4], 0
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 3
je 0x41e0c3
add edi, 0x1c
jmp 0x41e0c6
add edi, 0x5d
jne 0x41e0cc
xor eax, eax
jmp 0x41e0f6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x41e0e2
xor eax, eax
jmp 0x41e0f6
lea eax, [esi + esi]
call fcn.00482300
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.004010d0
cmp dword [ebx + 0x1af4], 0
mov ecx, 0x4a8ddc
jne 0x41e109
mov ecx, str.IMEI
push eax
push ecx
lea ecx, [ebp - 0x20]
push str.NV__s_s
push ecx
call fcn.00401ce0
movzx edx, word [ebp - 0x2a]
movzx eax, word [ebp - 0x2c]
movzx ecx, word [ebp - 0x2e]
push edx
movzx edx, word [ebp - 0x30]
push eax
movzx eax, word [ebp - 0x32]
push ecx
movzx ecx, word [ebp - 0x36]
push edx
movzx edx, word [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x1c]
push edx
push eax
push ecx
lea edx, [ebp - 0x18]
push str._s_s__4d__02d__02d__02d__02d__02d__03d
push edx
call fcn.00401ce0
add esp, 0x3c
lea ecx, [ebp - 0x50]
call fcn.0045bc62
mov ebx, 4
mov byte [ebp - 4], bl
lea edi, [ebx - 3]
jmp 0x41e170
push str..bin
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004185a0
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.0045bcfa
mov esi, eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e1ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x41e230
call fcn.00459da6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41df8d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
push edi
lea ecx, [ebp - 0x28]
push str.__d_
push ecx
mov byte [ebp - 4], 6
call fcn.00401ce0
mov esi, dword [ebp - 0x28]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
lea ecx, [ebp - 0x18]
inc edi
call fcn.00401ae0
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e170
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41e170
push ebx
push str..bin
lea ecx, [ebp - 0x18]
call fcn.00401ae0
lea ecx, [ebp - 0x50]
call fcn.0045b847
mov edi, dword [ebp - 0x18]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
je 0x41e32a
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x24]
push ecx
push edx
push eax
push esi
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.0045bc8b
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e2c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e2df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e301
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x41e320
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41e3ec
push edi
lea ecx, [ebp - 0x14]
push str._save_nv_to_local__Create_file___s__fail.
push ecx
call fcn.00401ce0
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
add edx, 0x9e
add esp, 0xc
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41e350
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.0045bc8b
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e38d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e3ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e3ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x41e3ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
lea esp, [ebp - 0x60]
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.004820da
mov esp, ebp
pop ebp
ret 0xc