Function at 0x435970
Capabilities:
Check os version
Create directory
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x465e4f
mov eax, dword fs:[0]
push eax
sub esp, 0x3e0
mov eax, dword [0x48602c]
xor eax, esp
mov dword [esp + 0x3d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48602c]
xor eax, esp
push eax
lea eax, [esp + 0x3f4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x404]
xor ebx, ebx
mov ecx, 0x1a
lea esi, [esp + 0x408]
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
push ebx
lea edi, [esp + 0x1c]
mov ecx, ebp
mov byte [esp + 0x1b], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
call fcn.004355e0
mov dword [esp + 0x24], vtable.MemoryControl.0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3fc], ebx
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.00436500
mov esi, eax
push esi
mov ecx, ebp
call fcn.004355e0
test al, al
je 0x435b2d
mov eax, 0x4ec4ec4f
mul dword [esp + 0x18]
shr edx, 5
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
je 0x435b2d
lea ebp, [esi + 7]
mov edi, edi
lea edx, [ebp - 3]
mov eax, 0x10
mov ecx, edx
lea esi, [esp + 0x70]
mov edi, edi
mov edi, dword [esi]
cmp edi, dword [ecx]
jne 0x435a58
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x435a40
cmp eax, ebx
je 0x435ab5
movzx edi, byte [esi]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x435b09
sub eax, 1
xor ebx, ebx
add ecx, 1
add esi, 1
cmp eax, ebx
je 0x435ab5
movzx edi, byte [esi]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x435b09
sub eax, 1
xor ebx, ebx
add ecx, 1
add esi, 1
cmp eax, ebx
je 0x435ab5
movzx edi, byte [esi]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x435b09
sub eax, 1
xor ebx, ebx
add ecx, 1
add esi, 1
cmp eax, ebx
je 0x435ab5
movzx edi, byte [esi]
movzx ecx, byte [ecx]
sub edi, ecx
jne 0x435b0b
xor eax, eax
cmp eax, ebx
jne 0x435aef
xor ecx, ecx
xor eax, eax
nop
movzx edi, byte [eax + ebp - 1]
movzx esi, byte [eax + ebp - 2]
add esi, edi
movzx edi, byte [edx + eax]
add esi, edi
movzx edi, byte [eax + ebp + 1]
add esi, edi
movzx edi, byte [eax + ebp]
add edi, ecx
add eax, 5
cmp eax, 0x64
lea ecx, [edi + esi]
jl 0x435ac0
cmp ecx, dword [ebp - 7]
je 0x435b19
mov eax, dword [esp + 0x1c]
add eax, 1
add ebp, 0x68
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
jb 0x435a30
jmp 0x435b26
xor ebx, ebx
cmp edi, ebx
mov eax, 1
jg 0x435ab7
or eax, 0xffffffff
jmp 0x435ab7
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x17], 1
mov dword [esp + 0x20], edx
mov ebp, dword [esp + 0x404]
push 0x1fe
lea eax, [esp + 0x1f2]
push ebx
push eax
mov word [esp + 0x1f8], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push pe_nt_image_headers32
lea ecx, [esp + 0x1f0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x1ec]
push edx
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 3
push ebx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x408], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x400], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x50]
mov byte [esp + 0x3fc], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [ebp], bl
je 0x435bf3
push str.WindowsSystem32_
lea ecx, [esp + 0x38]
call dword [0x46831c]
mov eax, dword [ebp + 4]
sub eax, ebx
je 0x435bec
sub eax, 1
je 0x435be2
sub eax, 1
jne 0x435c7b
push str.AnBakConfig.dat
jmp 0x435c71
push str.PaBakConfig.dat
jmp 0x435c71
push str.AbBakConfig.dat
jmp 0x435c71
lea ecx, [esp + 0xd4]
push ecx
mov dword [esp + 0xd8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xd8], 6
lea ecx, [esp + 0x34]
jb 0x435c21
push str.ProgramDataAomei
jmp 0x435c26
push str.Documents_and_SettingsAll_UsersApplication_DataAomei
call dword [0x46831c]
push ebx
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x47bbdc
lea ecx, [esp + 0x38]
call dword [0x46831c]
mov eax, dword [ebp + 4]
sub eax, ebx
je 0x435c6c
sub eax, 1
je 0x435c65
sub eax, 1
jne 0x435c7b
push str.AnConfig.dat
jmp 0x435c71
push str.PaConfig.dat
jmp 0x435c71
push str.AbConfig.dat
lea ecx, [esp + 0x38]
call dword [0x46831c]
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x435d12
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea esi, [esp + 0x50]
mov byte [esp + 0x3fc], 3
call fcn.00432630
mov edx, esi
push edx
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push str.Config.dat
lea ecx, [esp + 0x38]
call dword [0x46831c]
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call edi
lea ecx, [esp + 0x50]
mov esi, eax
mov byte [esp + 0x3fc], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, 0xffffffff
je 0x435d37
xor eax, eax
cmp byte [esp + 0x17], bl
je 0x435d5e
mov ecx, dword [esp + 0x20]
imul ecx, ecx, 0x68
push ebx
push ebx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x435d67
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x34]
mov byte [esp + 0x3fc], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x435d5a
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
xor al, al
jmp 0x435dc0
push 2
push ebx
xor ecx, ecx
push ecx
push eax
jmp 0x435d25
lea eax, [esp + 0x6c]
push eax
call fcn.00432e20
push ebx
lea ecx, [esp + 0x34]
push ecx
push 0x68
lea edx, [esp + 0x78]
push edx
push esi
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
je 0x435d31
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x34]
mov byte [esp + 0x3fc], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x435dbe
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x3f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, esp
call fcn.0043ad38
add esp, 0x3ec
ret 0x6c