Function at 0x415020
Capabilities:
Copy file
Create pipe
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0x77666
mov eax, dword [0x55c92c]
mov dword [ebp - 0xbc], eax
mov ecx, 0xdcf9
mov word [ebp - 0xac], cx
mov esi, dword [ebp - 0x10c]
sub esi, dword [ebp - 0x10c]
add esi, 0x7b177
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
sub esi, eax
movzx edx, byte [ebp - 0x81]
sub esi, edx
movzx eax, word [ebp - 0xac]
sub esi, eax
movzx ecx, byte [ebp - 0x81]
lea ebx, [esi + ecx + 0x40893]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
sub ebx, eax
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
sub ebx, eax
add ebx, 0x6c374
shl ebx, 0x80
mov byte [ebp - 0x81], bl
mov edx, dword [ebp - 0x10c]
add edx, dword [ebp - 0x10c]
mov eax, 0x64486
sub eax, dword [ebp - 0x10c]
or edx, eax
mov dword [ebp - 0x10c], edx
xor ecx, ecx
je 0x415113
mov ecx, dword [ebp - 0x10c]
xor esi, esi
mov edi, dword [ebp - 0x10c]
xor ebx, ebx
sub edi, dword [ebp - 0x70]
sbb ebx, dword [ebp - 0x6c]
movzx eax, word [ebp - 0xac]
cdq
sub edi, eax
sbb ebx, edx
or ecx, edi
or esi, ebx
mov dword [ebp - 0x10c], ecx
jmp 0x415176
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
add eax, 0x42c5c
mov esi, eax
xor edi, edi
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
add eax, 0x6f00b
xor edx, edx
sub eax, dword [ebp - 0x70]
sbb edx, dword [ebp - 0x6c]
and esi, eax
and edi, edx
mov eax, dword [ebp - 0x10c]
add eax, 0x6e184
sub eax, dword [ebp - 0x10c]
xor ecx, ecx
and esi, eax
and edi, ecx
movzx eax, word [ebp - 0xac]
cdq
and esi, eax
and edi, edx
mov dword [ebp - 0x10c], esi
mov esi, 0x4d240
sub esi, dword [ebp - 0x10c]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [esi + eax - 0x6cf89]
or edx, dword [ebp - 0x10c]
mov dword [ebp - 0x10c], edx
mov eax, 0x4d9c1
sub eax, dword [ebp - 0x10c]
and eax, dword [ebp - 0x10c]
and eax, dword [ebp - 0x10c]
movzx ecx, byte [ebp - 0x81]
mov edx, 0x5a817
sub edx, ecx
sub edx, 0x1250f
and eax, edx
mov ecx, dword [ebp - 0x10c]
sub ecx, 0x54d0b
and eax, ecx
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0x37726
jae 0x4151f1
xor edx, edx
je 0x415231
mov esi, dword [ebp - 0x10c]
add esi, 0x55996
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
sub esi, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
sub esi, eax
mov eax, 0x70d21
mov ecx, esi
shl eax, cl
and eax, 0x3c75d
mov dword [ebp - 0x10c], eax
jmp 0x415267
mov ecx, 0x7beaa
sub ecx, dword [ebp - 0x10c]
and ecx, 0x6c9e6
xor edx, edx
and ecx, dword [ebp - 0x70]
and edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x10c]
sub eax, 0xea7bb
xor esi, esi
and ecx, eax
and edx, esi
or ecx, 0x184da
mov dword [ebp - 0x10c], ecx
movzx eax, word [ebp - 0xac]
cdq
sub eax, dword [ebp - 0x70]
sbb edx, dword [ebp - 0x6c]
mov dword [ebp - 0x10c], eax
movzx ecx, byte [ebp - 0x81]
add ecx, dword [ebp - 0x10c]
movzx edx, word [ebp - 0xac]
add ecx, edx
sub ecx, dword [ebp - 0x10c]
sub ecx, dword [ebp - 0x10c]
and ecx, 0x64b3b
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x14c]
sub ecx, 1
mov dword [ebp - 0x14c], ecx
cmp dword [ebp - 0x14c], 0xaa
ja case.0x4152e1.1
mov edx, dword [ebp - 0x14c]
movzx eax, byte [edx + 0x415488]
jmp dword [eax*4 + 0x415470]
mov ecx, dword [ebp - 0x10c]
add ecx, 0x4c52f
sub ecx, dword [ebp - 0x10c]
sub ecx, 0x328ea
sub ecx, dword [ebp - 0x10c]
movzx edx, word [ebp - 0xac]
add edx, 0x1ff72
movzx eax, word [ebp - 0xac]
sub edx, eax
sub edx, 0x99147
or ecx, edx
mov dword [ebp - 0xbc], ecx
jmp 0x41545e
mov ecx, dword [ebp - 0x10c]
sub ecx, 0x63da2
mov byte [ebp - 0x81], cl
jmp 0x41545e
movzx esi, byte [ebp - 0x81]
add esi, dword [ebp - 0x10c]
and esi, dword [ebp - 0x10c]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
and esi, eax
xor esi, dword [ebp - 0x10c]
movzx edx, byte [ebp - 0x81]
and edx, dword [ebp - 0x10c]
movzx eax, byte [ebp - 0x81]
and edx, eax
xor esi, edx
xor esi, 0x10632
movzx ecx, word [ebp - 0xac]
or esi, ecx
or esi, 0x3ba19
mov dword [ebp - 0xbc], esi
jmp 0x41545e
mov edx, dword [ebp - 0x10c]
add edx, 0x6757f
mov esi, edx
xor edi, edi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, 0x34201
sub ecx, eax
xor edx, edx
add ecx, dword [ebp - 0x70]
adc edx, dword [ebp - 0x6c]
sub ecx, 0x7956f
sbb edx, 0
and esi, ecx
and edi, edx
mov eax, dword [ebp - 0x70]
add eax, 0x57fed
mov ecx, dword [ebp - 0x6c]
adc ecx, 0
and esi, eax
and edi, ecx
mov dword [ebp - 0xbc], esi
jmp 0x41545e
movzx esi, byte [ebp - 0x81]
sub esi, 0x2732e
sub esi, dword [ebp - 0x10c]
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
add eax, dword [ebp - 0x10c]
and esi, eax
mov dword [ebp - 0xbc], esi
jmp 0x41545e
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esi, dword [ebp - 0x10c]
sub esi, eax
sub esi, 0x1103a
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
sub esi, eax
mov dword [ebp - 0x10c], esi
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18