Function at 0x4049b0
Capabilities:
Clear file content
Create mailslot
Create pipe
Identify system language via api
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
push edi
mov eax, 0x4a0a
mov word [ebp - 0xac], ax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov ecx, dword [0x55c92c]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
movzx esi, byte [ebp - 0x81]
sub esi, 0x1b0a8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
add eax, 0x4b511
and esi, eax
mov ebx, esi
xor esi, esi
and ebx, dword [ebp - 0x70]
and esi, dword [ebp - 0x6c]
or ebx, 0x11731
mov edi, dword [ebp - 0x10c]
add edi, 0x2583e
movzx eax, word [ebp - 0xac]
sub eax, 0x292cd
mov dword [ebp - 0x14c], eax
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov ecx, dword [ebp - 0x14c]
sub ecx, eax
and edi, ecx
xor edx, edx
or ebx, edi
or esi, edx
mov byte [ebp - 0x81], bl
movzx eax, word [ebp - 0xac]
test eax, eax
je 0x404a91
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
cmp esi, eax
je 0x404acb
mov esi, dword [ebp - 0x10c]
add esi, 0x5307
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
sub esi, eax
movzx ecx, word [ebp - 0xac]
mov edx, 0xb8f88
sub edx, ecx
mov eax, dword [ebp - 0x10c]
mov ecx, edx
shr eax, cl
and esi, eax
mov dword [ebp - 0x10c], esi
jmp 0x404afa
movzx esi, word [ebp - 0xac]
mov edi, dword [ebp - 0x10c]
add edi, 0x2697a
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
sub edi, eax
or esi, edi
mov dword [ebp - 0x10c], esi
mov ecx, 0xbe4bb
sub ecx, dword [ebp - 0x10c]
or ecx, 0x7bbf0
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x150], edx
cmp dword [ebp - 0x150], 0x96
je 0x404b57
cmp dword [ebp - 0x150], 0xe4
je 0x404ba7
cmp dword [ebp - 0x150], 0xfb
je 0x404b46
jmp 0x404bd7
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xbc], eax
jmp 0x404c3e
mov ecx, dword [ebp - 0x10c]
add ecx, 0x1ea66
or ecx, 0x72450
or ecx, 0x1d0bd
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x10c]
lea edx, [eax + edx - 0x5c07e]
or ecx, edx
or ecx, 0x4b6dd
mov eax, dword [ebp - 0x10c]
add eax, 0x77856
xor eax, 0x77eba
or ecx, eax
mov dword [ebp - 0xbc], ecx
jmp 0x404c3e
mov esi, dword [ebp - 0x10c]
xor edi, edi
add esi, dword [ebp - 0x70]
adc edi, dword [ebp - 0x6c]
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ecx, ecx
and esi, eax
and edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor edx, edx
or esi, eax
or edi, edx
mov dword [ebp - 0xbc], esi
jmp 0x404c3e
mov esi, 0x37c85
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
sub eax, 0x1a1c
or esi, eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add eax, 0x70ac0
sub eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x10c]
lea edi, [eax + ecx + 0x5609d]
push 0
call dword [sym.imp.KERNEL32.dll_GetTapeStatus]
mov edx, dword [ebp - 0x10c]
sub edx, 0x4ed07
and eax, edx
and eax, 0x4288
xor edi, eax
or esi, edi
mov dword [ebp - 0x10c], esi
cmp dword [ebp - 0x70], 0x63d5f
jne 0x404c5e
cmp dword [ebp - 0x6c], 0
jne 0x404c5e
push 0
push 0
call sub.KERNEL32.dll_Module32First
cmp dword [ebp - 0x10c], eax
jne 0x404ca2
mov esi, 0x816bf
sub esi, dword [ebp - 0x10c]
sub esi, 0x35eac
movzx eax, word [ebp - 0xac]
sub esi, eax
add esi, 0x7dff
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
movzx ecx, byte [ebp - 0x81]
add eax, ecx
or esi, eax
mov word [ebp - 0xac], si
jmp 0x404cbc
mov edx, dword [ebp - 0x10c]
xor eax, eax
or edx, dword [ebp - 0x70]
or eax, dword [ebp - 0x6c]
or edx, 0x54d7e
mov dword [ebp - 0x10c], edx
mov ecx, dword [ebp - 0x10c]
sub ecx, dword [ebp - 0x10c]
or ecx, 0x1996b
mov edx, dword [ebp - 0x10c]
add edx, 0x61643
and edx, 0x57106
or ecx, edx
mov dword [ebp - 0x10c], ecx
movzx eax, word [ebp - 0xac]
mov ecx, 0x2652f
sub ecx, eax
add ecx, dword [ebp - 0x10c]
shl ecx, 0xeb
mov esi, ecx
xor edi, edi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
xor edx, edx
mov ebx, dword [ebp - 0x70]
sub ebx, eax
mov eax, dword [ebp - 0x6c]
sbb eax, edx
mov ecx, dword [ebp - 0x10c]
xor edx, edx
add ebx, ecx
adc eax, edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x154], eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
xor ecx, ecx
add ebx, eax
mov eax, dword [ebp - 0x154]
adc eax, ecx
sub ebx, 0x48ba3
sbb eax, 0
add ebx, 0x67a8b
adc eax, 0
or esi, ebx
or edi, eax
mov dword [ebp - 0x10c], esi
mov edx, dword [ebp - 0x10c]
sub edx, dword [ebp - 0x10c]
and edx, dword [ebp - 0x10c]
mov esi, edx
xor edi, edi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
xor ecx, ecx
sub eax, dword [ebp - 0x70]
sbb ecx, dword [ebp - 0x6c]
or esi, eax
or edi, ecx
mov dword [ebp - 0x10c], esi
movzx esi, word [ebp - 0xac]
or esi, dword [ebp - 0x10c]
movzx edx, word [ebp - 0xac]
mov eax, 0xfffd1c4c
sub eax, edx
mov ecx, dword [ebp - 0x10c]
lea edi, [eax + ecx + 0x5ad19]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
add eax, 0x62d1c
xor edi, eax
or esi, edi
mov word [ebp - 0xac], si
mov esi, dword [ebp - 0x10c]
sub esi, dword [ebp - 0x10c]
and esi, 0x78ccf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
mov edx, dword [ebp - 0x10c]
sub edx, dword [ebp - 0x10c]
and eax, edx
xor esi, eax
mov dword [ebp - 0x10c], esi
mov eax, 0x25454
sub eax, dword [ebp - 0x10c]
movzx ecx, word [ebp - 0xac]
add ecx, 0x5ef14
movzx edx, byte [ebp - 0x81]
sub ecx, edx
and eax, ecx
movzx ecx, byte [ebp - 0x81]
add ecx, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x10c]
lea ecx, [ecx + edx + 0x2f18e]
mov edx, dword [ebp - 0x10c]
lea ecx, [ecx + edx - 0x4f7ae]
or eax, ecx
mov word [ebp - 0xac], ax
movzx eax, byte [ebp - 0x81]
movzx edx, word [ebp - 0xac]
add eax, edx
cdq
mov esi, eax
mov edi, edx
mov eax, dword [ebp - 0x10c]
xor ecx, ecx
sub eax, dword [ebp - 0x70]
sbb ecx, dword [ebp - 0x6c]
and esi, eax
and edi, ecx
mov ebx, dword [ebp - 0x10c]
add ebx, 0x3010d
mov eax, dword [ebp - 0x10c]
sub eax, 0x5ce6
movzx edx, byte [ebp - 0x81]
sub eax, edx
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x158], eax
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
mov ecx, dword [ebp - 0x158]
add ecx, dword [ebp - 0x10c]
lea eax, [eax + ecx + 0x6945f]
and ebx, eax
and ebx, 0x62373
xor ecx, ecx
or esi, ebx
or edi, ecx
mov word [ebp - 0xac], si
movzx edx, word [ebp - 0xac]
test edx, edx
jne 0x404f50
movzx eax, byte [ebp - 0x81]
cmp eax, dword [ebp - 0x10c]
jne 0x404f50
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x10c]
lea eax, [edx + ecx - 0xed4b9]
sub eax, dword [ebp - 0x10c]
mov ecx, eax
xor esi, esi
movzx eax, byte [ebp - 0x81]
cdq
mov edi, dword [ebp - 0x70]
sub edi, eax
mov eax, dword [ebp - 0x6c]
sbb eax, edx
and ecx, edi
and esi, eax
mov edx, dword [ebp - 0x10c]
xor eax, eax
and ecx, edx
and esi, eax
mov dword [ebp - 0x10c], ecx
jmp 0x404f92
mov esi, dword [ebp - 0x10c]
sub esi, dword [ebp - 0x10c]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or esi, eax
movzx edi, word [ebp - 0xac]
add edi, 0x4f312
sub edi, dword [ebp - 0x10c]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
sub edi, eax
or esi, edi
mov word [ebp - 0xac], si
mov esi, dword [ebp - 0x10c]
xor ecx, ecx
add esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x6c]
adc edi, ecx
add esi, 0x104d0
adc edi, 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
cdq
add esi, eax
adc edi, edx
mov edx, dword [ebp - 0x10c]
xor eax, eax
sub esi, edx
sbb edi, eax
mov edx, dword [ebp - 0x10c]
mov ecx, esi
shl edx, cl
mov word [ebp - 0xac], dx
mov ax, word [ebp - 0xac]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc