Function at 0x100173e0
Capabilities:
Check os version
Create directory
Get common file path
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1003ab8c
mov eax, dword fs:[0]
push eax
sub esp, 0x3e0
mov eax, dword [0x10043330]
xor eax, esp
mov dword [esp + 0x3d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10043330]
xor eax, esp
push eax
lea eax, [esp + 0x3f4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x404]
xor ebx, ebx
lea eax, [esp + 0x18]
mov ecx, 0x1a
lea esi, [esp + 0x408]
lea edi, [esp + 0x6c]
push eax
rep movsd dword es:[edi], dword [esi]
push ebx
mov ecx, ebp
mov byte [esp + 0x1f], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
call fcn.10016f70
mov dword [esp + 0x24], vtable.MemoryControl.0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3fc], ebx
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
call fcn.1002b1c0
lea edx, [esp + 0x18]
mov esi, eax
push edx
push esi
mov ecx, ebp
call fcn.10016f70
test al, al
je 0x1001756a
mov eax, 0x4ec4ec4f
mul dword [esp + 0x18]
shr edx, 5
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
je 0x1001756a
lea ebp, [esi + 4]
mov eax, 0x10
mov ecx, ebp
lea esi, [esp + 0x70]
nop
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x100174c8
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x100174b0
cmp eax, ebx
je 0x10017525
movzx edi, byte [esi]
movzx edx, byte [ecx]
sub edi, edx
jne 0x10017517
sub eax, 1
add ecx, 1
add esi, 1
cmp eax, ebx
je 0x10017525
movzx edi, byte [esi]
movzx edx, byte [ecx]
sub edi, edx
jne 0x10017517
sub eax, 1
add ecx, 1
add esi, 1
cmp eax, ebx
je 0x10017525
movzx edi, byte [esi]
movzx edx, byte [ecx]
sub edi, edx
jne 0x10017517
sub eax, 1
add ecx, 1
add esi, 1
cmp eax, ebx
je 0x10017525
movzx edi, byte [esi]
movzx eax, byte [ecx]
sub edi, eax
je 0x10017525
cmp edi, ebx
mov eax, 1
jg 0x10017527
or eax, 0xffffffff
jmp 0x10017527
xor eax, eax
cmp eax, ebx
jne 0x10017543
xor ecx, ecx
xor eax, eax
nop
movzx edx, byte [eax + ebp]
add eax, 1
add ecx, edx
cmp eax, 0x64
jl 0x10017530
cmp ecx, dword [ebp - 4]
je 0x1001755d
mov eax, dword [esp + 0x1c]
add eax, 1
add ebp, 0x68
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
jb 0x100174a4
jmp 0x1001756a
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x17], 1
mov dword [esp + 0x20], eax
push 0x1fe
lea ecx, [esp + 0x1f2]
push ebx
push ecx
mov word [esp + 0x1f8], bx
call fcn.1002fb20
add esp, 0xc
push 0x100
lea edx, [esp + 0x1f0]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x1ec]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100175b6
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1f0]
push eax
lea esi, [esp + 0x3c]
call fcn.100031f0
mov ecx, esi
push ecx
mov ecx, 3
lea esi, [esp + 0x54]
mov byte [esp + 0x400], 1
call fcn.10016b90
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x404], 2
call fcn.10003860
mov ebp, 8
mov byte [esp + 0x3fc], 1
cmp dword [esp + 0x68], ebp
jb 0x10017624
mov edx, dword [esp + 0x54]
push edx
call fcn.1002b322
add esp, 4
mov esi, dword [esp + 0x404]
cmp byte [esi], bl
je 0x10017678
push 0x11
push str.WindowsSystem32_
lea ecx, [esp + 0x3c]
call fcn.10003120
mov eax, dword [esi + 4]
sub eax, ebx
je 0x1001766c
sub eax, 1
je 0x10017660
sub eax, 1
jne 0x1001770d
push 0xf
push str.AnBakConfig.dat
jmp 0x10017704
push 0xf
push str.PaBakConfig.dat
jmp 0x10017704
push 0xf
push str.AbBakConfig.dat
jmp 0x10017704
lea eax, [esp + 0xd4]
push eax
mov dword [esp + 0xd8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xd8], 6
lea ecx, [esp + 0x34]
jb 0x100176a8
push 0x11
push str.ProgramDataAomei
jmp 0x100176af
push 0x37
push str.Documents_and_SettingsAll_UsersApplication_DataAomei
call fcn.10003120
cmp dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x38]
jae 0x100176c2
lea eax, [esp + 0x38]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x1003f190
lea ecx, [esp + 0x3c]
call fcn.10003120
mov eax, dword [esi + 4]
sub eax, ebx
je 0x100176fd
sub eax, 1
je 0x100176f4
sub eax, 1
jne 0x1001770d
push 0xc
push str.AnConfig.dat
jmp 0x10017704
push 0xc
push str.PaConfig.dat
jmp 0x10017704
push 0xc
push str.AbConfig.dat
lea ecx, [esp + 0x3c]
call fcn.10003120
cmp dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x38]
jae 0x1001771b
lea eax, [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001782c
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
lea ecx, [esp + 0x50]
mov byte [esp + 0x3fc], 3
call fcn.10028dd0
push esi
push ebx
lea eax, [esp + 0x58]
lea ecx, [esp + 0x3c]
call fcn.10003860
push 0xa
push str.Config.dat
lea ecx, [esp + 0x3c]
call fcn.10003120
cmp dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x38]
jae 0x1001778e
lea eax, [esp + 0x38]
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10017805
cmp dword [esp + 0x68], ebp
jb 0x100177bb
mov ecx, dword [esp + 0x54]
push ecx
call fcn.1002b322
add esp, 4
cmp dword [esp + 0x4c], ebp
mov esi, 7
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
jb 0x100177e0
mov edx, dword [esp + 0x38]
push edx
call fcn.1002b322
add esp, 4
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
je 0x100177fe
push eax
call fcn.1002c6d7
add esp, 4
xor al, al
jmp 0x10017930
cmp dword [esp + 0x68], ebp
jb 0x10017818
mov eax, dword [esp + 0x54]
push eax
call fcn.1002b322
add esp, 4
mov edi, 7
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
jmp 0x10017831
mov edi, 7
xor eax, eax
cmp byte [esp + 0x17], bl
je 0x10017872
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 0x100178a7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x4c], ebp
jb 0x10017869
mov ecx, dword [esp + 0x38]
push ecx
call fcn.1002b322
add esp, 4
mov dword [esp + 0x4c], edi
jmp 0x100177e4
push 2
push ebx
xor ecx, ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100178a7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x4c], ebp
jb 0x10017869
mov edx, dword [esp + 0x38]
push edx
call fcn.1002b322
add esp, 4
mov dword [esp + 0x4c], edi
jmp 0x100177e4
lea eax, [esp + 0x6c]
push eax
call fcn.10029d40
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
jne 0x100178f0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x4c], ebp
jb 0x10017869
mov eax, dword [esp + 0x38]
push eax
call fcn.1002b322
add esp, 4
mov dword [esp + 0x4c], edi
jmp 0x100177e4
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x4c], ebp
jb 0x10017910
mov ecx, dword [esp + 0x38]
push ecx
call fcn.1002b322
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
je 0x1001792e
push eax
call fcn.1002c6d7
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.1002b6af
add esp, 0x3ec
ret 0x6c