Function at 0x1400498f0
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc18
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x98], 0xfffffffffffffffe
mov r13, r8
mov rbx, rdx
mov byte [r9], 0
mov rax, qword [rbp + 0xc40]
mov byte [rax], 0
lea rax, vtable.TextStream.0
mov qword [rbp], rax
xor esi, esi
mov qword [rbp + 8], rsi
mov dword [rbp + 0x10], esi
mov dword [rbp + 0x14], 0xffffffff
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], rsi
mov ecx, dword [0x140143fb8]
cmp ecx, 0xffffffff
je 0x140049982
mov dword [rbp + 0x14], ecx
lea rdx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
movzx ecx, byte [rbp + 0x1e]
test eax, eax
cmove ecx, esi
mov byte [rbp + 0x1e], cl
lea rax, vtable.TextMem.0
mov qword [rbp], rax
mov qword [rbp + 0x40], rsi
mov dword [rbp + 0x48], esi
mov byte [rbp + 0x4c], sil
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x60], rsi
mov dword [rbp + 0x68], esi
mov byte [rbp + 0x6c], 0
mov rax, rsi
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x88], rax
mov r14d, 0x5c
lea r15d, [r14 - 0x18]
cmp qword [0x14013f660], 0
jne 0x140049eed
lea r8d, [r14 - 0x52]
lea rdx, str.C974C3B7677A402D93B047DA402587C7
mov rcx, qword [0x14013f6e0]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
mov rdx, rax
mov rcx, qword [0x14013f6e0]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rdx, rdi
mov rcx, qword [0x14013f6e0]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [rax + 8]
cmp ebx, ecx
jb 0x140049a32
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8d, ebx
lea rdx, [rbp + 0x70]
mov rcx, rax
call fcn.1400e5430
jmp 0x140049a34
mov eax, esi
mov r12d, eax
lea rcx, [r12 + 1]
call qword [sym.imp.MSVCR100.dll_malloc]
mov rsi, rax
mov qword [0x14013f6a0], rax
lea rcx, [r12 + 1]
call qword [sym.imp.MSVCR100.dll_malloc]
mov rbx, rax
mov qword [0x14013f6a8], rax
mov r8d, r12d
mov rdi, qword [rbp + 0x70]
mov rdx, rdi
mov rcx, rsi
call sub.MSVCR100.dll_memcpy
mov r8d, r12d
mov rdx, rdi
mov rcx, rbx
call sub.MSVCR100.dll_memcpy
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_free]
mov byte [r12 + rsi], 0
mov byte [r12 + rbx], 0
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharLowerA]
lea r12, [0x14013f660]
mov rdi, r12
lea rbx, [0x14013f6a0]
nop
mov ecx, 0x208
call qword [sym.imp.MSVCR100.dll_malloc]
mov qword [rdi], rax
test rax, rax
je 0x140049ebe
add rdi, 0x10
cmp rdi, rbx
jl 0x140049ab0
xor eax, eax
or rcx, 0xffffffffffffffff
mov r8, qword [0x140143d00]
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
dec rcx
mov qword [0x14013f668], rcx
cmp rcx, 0xff
jae 0x140049b80
mov rdx, qword [0x14013f660]
test rdx, rdx
je 0x140049b32
nop dword [rax]
movzx eax, word [r8]
mov word [rdx], ax
add r8, 2
add rdx, 2
test ax, ax
jne 0x140049b10
mov rdx, qword [0x14013f660]
mov r8, qword [0x140143d00]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
dec rcx
mov qword [0x14013f668], rcx
lea rdi, [0x14011f418]
lea r8, [rdx + rcx*2]
nop word [rax + rax]
movzx eax, word [rdi]
mov word [r8], ax
add rdi, 2
add r8, 2
test ax, ax
jne 0x140049b60
add qword [0x14013f668], 5
xor esi, esi
jmp 0x140049b93
mov rax, qword [0x14013f660]
xor esi, esi
mov word [rax], si
mov qword [0x14013f668], rsi
lea rdx, [0x1401035ac]
mov rcx, qword [0x14013f670]
call fcn.140088550
mov qword [0x14013f678], rax
cmp rax, 0xf4
jae 0x140049bed
lea rdx, str.AutoHotkeyLib_
mov rcx, qword [0x14013f670]
lea rcx, [rcx + rax*2]
nop word [rax + rax]
movzx eax, word [rdx]
mov word [rcx], ax
add rdx, 2
add rcx, 2
test ax, ax
jne 0x140049bd0
add qword [0x14013f678], 0x10
jmp 0x140049bfe
mov rax, qword [0x14013f670]
mov word [rax], si
mov qword [0x14013f678], rsi
mov r8d, 0x104
mov rdx, qword [0x14013f680]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, r14d
mov rcx, qword [0x14013f680]
call qword [sym.imp.MSVCR100.dll_wcsrchr]
add rax, 2
mov rdx, qword [0x14013f680]
sub rax, rdx
sar rax, 1
mov eax, eax
mov qword [0x14013f688], rax
cmp rax, 0x100
jae 0x140049c6d
lea rcx, str.Lib_
lea rdx, [rdx + rax*2]
movzx eax, word [rcx]
mov word [rdx], ax
add rcx, 2
add rdx, 2
test ax, ax
jne 0x140049c50
add qword [0x14013f688], 4
jmp 0x140049c77
mov word [rdx], si
mov qword [0x14013f688], rsi
mov rdi, qword [0x14013f690]
mov r8d, 0x104
lea rdx, [rbp + 0x7b0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test rdi, rdi
je 0x140049cc0
lea rcx, [rbp + 0x7b0]
lea rax, [rbp + 0x7b0]
sub rdi, rax
nop dword [rax]
movzx eax, word [rcx]
mov word [rdi + rcx], ax
add rcx, 2
test ax, ax
jne 0x140049cb0
lea rdi, str.Lib.lnk
mov edx, r14d
mov rcx, qword [0x14013f690]
call qword [sym.imp.MSVCR100.dll_wcsrchr]
mov ecx, 2
sub rcx, rdi
lea rdx, [rax + rcx]
nop word [rax + rax]
movzx eax, word [rdi]
mov word [rdx + rdi], ax
add rdi, 2
test ax, ax
jne 0x140049cf0
mov edx, r14d
mov rcx, qword [0x14013f690]
call qword [sym.imp.MSVCR100.dll_wcsrchr]
mov word [rax + 0x10], si
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rdx, [rbp + 0x80]
mov qword [rsp + 0x20], rdx
lea r9, [0x1401034e0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1401034f0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140049e2a
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
lea r8, [rbp + 0x70]
lea rdx, [0x140103500]
call qword [rax]
test eax, eax
js 0x140049e1d
mov rcx, qword [rbp + 0x70]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [0x14013f690]
call qword [rax + 0x28]
test eax, eax
js 0x140049e13
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rbp + 0x7b0]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdx, [rbp + 0x7b0]
mov rcx, qword [0x14013f690]
nop dword [rax + rax]
movzx eax, word [rdx]
mov word [rcx], ax
add rdx, 2
add rcx, 2
test ax, ax
jne 0x140049dc0
lea rdx, [0x14011f470]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x7b0]
repne scasw ax, word [rdi]
not rcx
mov rax, qword [0x14013f690]
lea rcx, [rax + rcx*2 - 2]
nop dword [rax]
movzx eax, word [rdx]
mov word [rcx], ax
add rdx, 2
add rcx, 2
test ax, ax
jne 0x140049e00
mov rcx, qword [rbp + 0x70]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [0x14013f690]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
lea rcx, [rbp + 0x9c0]
call fcn.1400e18e0
mov edx, r15d
mov rcx, rax
call qword [sym.imp.MSVCR100.dll_wcsrchr]
test rax, rax
jne 0x140049e6f
mov qword [0x14013f698], rsi
mov rax, qword [0x14013f690]
mov word [rax], si
jmp 0x140049e8c
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, qword [0x14013f690]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov qword [0x14013f698], rcx
mov rdi, r12
nop
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140049ea2
test al, 0x10
jne 0x140049eac
mov rax, qword [rdi]
mov word [rax], si
mov qword [rdi + 8], rsi
add rdi, 0x10
cmp rdi, rbx
jl 0x140049e90
mov rbx, qword [rbp + 0xc28]
jmp 0x140049eed
lea rax, vtable.TextMem.0
mov qword [rbp], rax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14004af0d
cmp byte [rbp + 0x4c], 0
je 0x140049ee2
call qword [sym.imp.MSVCR100.dll_free]
xor ecx, ecx
mov qword [rbp + 0x40], rcx
jmp 0x14004af0d
test r13, r13
jne 0x140049f0e
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r13, rcx
mov qword [rbp + 0xc30], rcx
mov r14, rbx
mov r12, r13
mov r15d, esi
nop word [rax + rax]
mov r13d, esi
lea rsi, [0x14013f660]
nop word [rax + rax]
mov rcx, qword [rsi]
cmp word [rcx], 0
je 0x14004a067
mov rdx, qword [rsi + 8]
lea rax, [rdx + r12]
cmp rax, 0x100
jae 0x14004a067
lea rdi, [rcx + rdx*2]
lea rbx, [r12 + r12]
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call sub.MSVCR100.dll_memcpy
mov rax, rdi
lea rdi, str..ahk
mov rcx, rdi
sub rbx, rdi
lea rdx, [rbx + rax]
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x140049f80
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004a067
test al, 0x10
jne 0x14004a067
mov rax, qword [rbp + 0xc40]
mov byte [rax], 1
mov rbx, qword [rsi + 8]
mov rdi, qword [rsi]
xor eax, eax
mov word [rdi + rbx*2 - 2], ax
mov rcx, qword [rsi]
call fcn.1400826e0
mov eax, 0x5c
mov word [rdi + rbx*2 - 2], ax
mov rbx, qword [rbp + 0xc20]
mov rcx, qword [rbx + 0xbe0]
test rcx, rcx
je 0x14004a008
cmp byte [rbp + 0xc48], 0
je 0x14004a008
mov r9, qword [rsi]
mov qword [rsp + 0x20], r9
mov r8, qword [rsi + 8]
lea rdx, str.Include___0.s_nIncludeAgain__s_n
call fcn.140033a40
mov rax, qword [0x14013b0f8]
mov rdi, qword [rax + 0xd8]
xor ecx, ecx
mov qword [rax + 0xd8], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.14003a040
test eax, eax
mov rax, qword [0x14013b0f8]
mov qword [rax + 0xd8], rdi
je 0x14004a13a
xor r9d, r9d
mov r8, qword [rbp + 0xc30]
mov rdx, qword [rbp + 0xc28]
mov rcx, rbx
call fcn.14004af50
mov rdi, rax
test rax, rax
jne 0x14004a0e1
inc r13d
add rsi, 0x10
cmp r13d, 4
jl 0x140049f30
mov edx, 0x5f
mov rbx, qword [rbp + 0xc28]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcschr]
mov r12, rax
test rax, rax
je 0x14004a149
sub r12, rbx
sar r12, 1
cmp r12, 0xfe
jae 0x14004a149
lea r14, [rbp + 0xa0]
lea rdi, [r12 + r12]
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp + 0xa0]
call sub.MSVCR100.dll_memcpy
xor esi, esi
mov word [rbp + rdi + 0xa0], si
inc r15d
cmp r15d, 2
jge 0x14004a149
jmp 0x140049f20
lea rax, vtable.TextMem.0
mov qword [rbp], rax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14004a107
cmp byte [rbp + 0x4c], 0
je 0x14004a101
call qword [sym.imp.MSVCR100.dll_free]
xor eax, eax
mov qword [rbp + 0x40], rax
lea rax, vtable.TextStream.0
mov qword [rbp], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14004a132
xor edx, edx
mov r8d, 0x2000
call sub.MSVCR100.dll_memset
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.MSVCR100.dll_free]
mov rax, rdi
jmp 0x14004af3a
mov rax, qword [rbp + 0xc38]
mov byte [rax], 1
jmp 0x14004aee7
mov r14, qword [rbp + 0xc30]
lea rsi, [r14 + r14]
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp + 0xa0]
call sub.MSVCR100.dll_memcpy
mov rax, qword [str..ahk]
mov qword [rbp + rsi + 0xa0], rax
xor r13d, r13d
mov word [rbp + rsi + 0xa8], r13w
mov r15d, 1
mov r12d, r15d
lea r8, [0x14011f4c8]
lea rdx, [rbp + 0xa0]
mov rcx, qword [0x14013f6e0]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x14004a275
mov r12d, r13d
lea r8, [0x14011f4c8]
lea rdx, [rbp + 0xa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x14004a275
lea edx, [rax + 0x5f]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcschr]
test rax, rax
je 0x14004a82c
sub rax, rbx
sar rax, 1
cmp rax, 0xfe
jae 0x14004a82c
lea rdi, [rax + rax]
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp + 0xa0]
call sub.MSVCR100.dll_memcpy
mov rax, qword [str..ahk]
mov qword [rbp + rdi + 0xa0], rax
mov word [rbp + rdi + 0xa8], r13w
lea r8, [0x14011f4c8]
lea rdx, [rbp + 0xa0]
mov rcx, qword [0x14013f6e0]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x14004a272
lea r8, [0x14011f4c8]
lea rdx, [rbp + 0xa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14004a82c
jmp 0x14004a275
mov r12d, r15d
mov rbx, r13
test r12d, r12d
cmovne rbx, qword [0x14013f6e0]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x68], eax
test eax, eax
je 0x14004a825
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004a825
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14004a825
mov esi, r13d
movabs rbx, 0xffffffffffffff0
cmp dword [rax], 0x4034b50
jne 0x14004a3bb
mov ecx, dword [rax + 8]
mov edi, dword [rbp + 0x68]
cmp edi, ecx
jb 0x14004a3be
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8d, edi
lea rdx, [rbp + 0x70]
mov rcx, rax
call fcn.1400e5430
mov esi, eax
test eax, eax
je 0x14004a3bb
lea eax, [rsi + 0x12]
mov ecx, eax
cmp eax, 0x400
ja 0x14004a348
add rax, 0xf
cmp rax, rcx
ja 0x14004a324
mov rax, rbx
and rax, 0xfffffffffffffff0
call fcn.140100df0
sub rsp, rax
lea r13, [rsp + 0x40]
mov qword [rbp + 0x78], r13
test r13, r13
je 0x14004a368
mov dword [r13], 0xcccc
jmp 0x14004a360
call qword [sym.imp.MSVCR100.dll_malloc]
mov r13, rax
mov qword [rbp + 0x78], rax
test rax, rax
je 0x14004a368
mov dword [rax], 0xdddd
add r13, 0x10
mov qword [rbp + 0x78], r13
lea edi, [rsi + 2]
mov r15d, edi
mov qword [rbp + 0x90], r15
mov qword [rbp + 0x88], r13
mov r8, rsi
mov r12, qword [rbp + 0x70]
mov rdx, r12
mov rcx, r13
call sub.MSVCR100.dll_memcpy
xor eax, eax
mov word [rsi + r13], ax
test esi, esi
je 0x14004a3a6
mov r8, rsi
xor edx, edx
mov rcx, r12
call sub.MSVCR100.dll_memset
mov rcx, r12
call qword [sym.imp.MSVCR100.dll_free]
mov dword [rbp + 0x68], edi
mov qword [rbp + 0x60], r13
xor r13d, r13d
jmp 0x14004a3c5
mov edi, dword [rbp + 0x68]
mov r15, qword [rbp + 0x90]
mov rax, qword [rbp + 0xc40]
mov byte [rax], 1
mov eax, edi
lea rcx, [rax + rax + 0x10]
cmp rcx, 0x400
ja 0x14004a409
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x14004a3eb
mov rax, rbx
and rax, 0xfffffffffffffff0
call fcn.140100df0
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x14004a421
mov dword [rbx], 0xcccc
jmp 0x14004a41d
call qword [sym.imp.MSVCR100.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14004a421
mov dword [rax], 0xdddd
add rbx, 0x10
mov dword [rbp + reloc.WSOCK32.dll_ioctlsocket40], 0xc
mov dword [rbp + 0xc], r13d
lea r8, [rbp + 0xc40]
lea rdx, [rbp + 0x60]
lea rcx, [rbp]
mov rax, qword [rbp]
call qword [rax + reloc.WSOCK32.dll_htonl]
test al, al
je 0x14004a633
mov r13d, dword [rbp + 0x14]
cmp r13d, 0xfde9
je 0x14004a485
mov dword [rbp + 0x14], 0xfde9
lea rdx, [rbp + 0x18]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
movzx ecx, byte [rbp + 0x1e]
test eax, eax
mov eax, 0
cmove ecx, eax
mov byte [rbp + 0x1e], cl
mov r13d, dword [rbp + 0x14]
mov eax, dword [rbp + 0xc40]
mov dword [rbp + 8], eax
xor ecx, ecx
mov word [rbp + 0x2c], cx
mov r12d, eax
and r12d, 0x10000003
cmp r12d, 0x10000000
je 0x14004a630
cmp r12d, 1
je 0x14004a601
mov edi, dword [rbp + 0xc]
mov rax, qword [rbp + 0x38]
cmp edi, 3
jae 0x14004a51c
mov r14d, 0x2000
test rax, rax
jne 0x14004a4de
mov ecx, r14d
call qword [sym.imp.MSVCR100.dll_malloc]
mov qword [rbp + 0x38], rax
test rax, rax
je 0x14004a515
lea ecx, [rdi + 0x2000]
cmp ecx, r14d
jbe 0x14004a4ec
sub r14d, edi
lea rdx, [rax + rdi]
mov r8d, r14d
lea rcx, [rbp]
mov rax, qword [rbp]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov edi, dword [rbp + 0xc]
test eax, eax
je 0x14004a50a
add edi, eax
mov dword [rbp + 0xc], edi
mov dword [rbp + 0x10], eax
mov rax, qword [rbp + 0x38]
mov r13d, dword [rbp + 0x14]
mov r14, qword [rbp + 0xc30]
mov qword [rbp + 0x30], rax
cmp edi, 2
jb 0x14004a5bc
movzx ecx, byte [rax]
cmp cl, 0xff
jne 0x14004a56a
cmp byte [rax + 1], 0xfe
jne 0x14004a56a
add rax, 2
mov qword [rbp + 0x30], rax
cmp r13d, 0x4b0
je 0x14004a5bc
mov dword [rbp + 0x14], 0x4b0
lea rdx, [rbp + 0x18]
mov ecx, 0x4b0
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
xor r13d, r13d
test eax, eax
jne 0x14004a5bf
mov byte [rbp + 0x1e], al
jmp 0x14004a5bf
cmp cl, 0xef
jne 0x14004a5bc
cmp byte [rax + 1], 0xbb
jne 0x14004a5bc
cmp edi, 3
jb 0x14004a5bc
cmp byte [rax + 2], 0xbf
jne 0x14004a5bc
add rax, 3
mov qword [rbp + 0x30], rax
cmp r13d, 0xfde9
je 0x14004a5bc
mov dword [rbp + 0x14], 0xfde9
lea rdx, [rbp + 0x18]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
movzx ecx, byte [rbp + 0x1e]
test eax, eax
mov r13d, 0
cmove ecx, r13d
mov byte [rbp + 0x1e], cl
jmp 0x14004a5bf
xor r13d, r13d
cmp r12d, 2
je 0x14004a5cb
cmp r12d, 3
jne 0x14004a5db
lea rcx, [rbp]
mov rax, qword [rbp]
call qword [rax + reloc.WSOCK32.dll_getservbyport]
test rax, rax
je 0x14004a5fb
cmp r12d, 2
jne 0x14004a633
mov qword [rbp + 0x30], r13
mov dword [rbp + 0xc], r13d
xor edx, edx
mov r8d, r12d
lea rcx, [rbp]
mov rax, qword [rbp]
call qword [rax + 0x28]
jmp 0x14004a633
mov eax, dword [rbp + 0xc40]
test al, 0x10
je 0x14004a614
mov r8d, 3
lea rdx, [0x1401261e0]
jmp 0x14004a625
test al, 0x20
je 0x14004a630
mov r8d, 2
lea rdx, [0x1401261e4]
mov rax, qword [rbp]
lea rcx, [rbp]
call qword [rax + 0x20]
xor r13d, r13d
xor r9d, r9d
mov r8d, dword [rbp + 0x68]
mov rdx, rbx
lea rcx, [rbp]
call fcn.1400ddfc0
mov r12, qword [rbp + 0xc20]
mov r11, qword [r12 + 0xbe0]
test r11, r11
je 0x14004a688
cmp byte [rbp + 0xc48], 0
je 0x14004a688
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov r9, rbx
lea rdx, str._s_n
mov rcx, r11
call fcn.140033a40
mov rax, qword [0x14013b0f8]
mov rdi, qword [rax + 0xd8]
mov qword [rax + 0xd8], r13
lea r8, [rbp + 0xa0]
mov rdx, rbx
mov rcx, r12
call fcn.140036f40
test eax, eax
jne 0x14004a768
test esi, esi
je 0x14004a6c9
mov r8d, esi
xor edx, edx
mov rcx, qword [rbp + 0x60]
call sub.MSVCR100.dll_memset
mov r8d, dword [rbp + 0x68]
add r8, 2
je 0x14004a6dd
xor edx, edx
mov rcx, rbx
call sub.MSVCR100.dll_memset
mov rax, qword [0x14013b0f8]
mov qword [rax + 0xd8], rdi
mov rax, qword [rbp + 0xc38]
mov byte [rax], 1
test rbx, rbx
je 0x14004a70d
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14004a70d
call qword [sym.imp.MSVCR100.dll_free]
nop
mov rbx, qword [rbp + 0x78]
test rbx, rbx
je 0x14004a73b
test r15, r15
je 0x14004a728
mov r8, r15
xor edx, edx
mov rcx, rbx
call sub.MSVCR100.dll_memset
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14004a73b
call qword [sym.imp.MSVCR100.dll_free]
nop
lea rax, vtable.TextMem.0
mov qword [rbp], rax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14004af0d
cmp byte [rbp + 0x4c], 0
je 0x14004a75f
call qword [sym.imp.MSVCR100.dll_free]
mov qword [rbp + 0x40], r13
jmp 0x14004af0d
test esi, esi
je 0x14004a77a
mov r8d, esi
xor edx, edx
mov rcx, qword [rbp + 0x60]
call sub.MSVCR100.dll_memset
mov r8d, dword [rbp + 0x68]
add r8, r8
je 0x14004a78d
xor edx, edx
mov rcx, rbx
call sub.MSVCR100.dll_memset
test rbx, rbx
je 0x14004a7a4
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14004a7a4
call qword [sym.imp.MSVCR100.dll_free]
mov rax, qword [0x14013b0f8]
mov qword [rax + 0xd8], rdi
xor r9d, r9d
mov r8, r14
mov rdx, qword [rbp + 0xc28]
mov rcx, r12
call fcn.14004af50
mov rdi, rax
mov rbx, qword [rbp + 0x78]
test rbx, rbx
je 0x14004a7f8
test r15, r15
je 0x14004a7e5
mov r8, r15
xor edx, edx
mov rcx, rbx
call sub.MSVCR100.dll_memset
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14004a7f8
call qword [sym.imp.MSVCR100.dll_free]
nop
lea rax, vtable.TextMem.0
mov qword [rbp], rax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14004a107
cmp byte [rbp + 0x4c], 0
je 0x14004a81c
call qword [sym.imp.MSVCR100.dll_free]
mov qword [rbp + 0x40], r13
jmp 0x14004a107
mov rbx, qword [rbp + 0xc28]
mov eax, reloc.OLEAUT32.dll_SafeArrayAllocDescriptor
mov word [rbp + 0x3b0], ax
mov eax, 0x44
mov word [rbp + 0x3b2], ax
mov dword [rbp + 0x3b4], 0x6c006c
mov eax, 0x49
mov word [rbp + 0x3b8], ax
mov eax, WSASetLastError
mov word [rbp + 0x3ba], ax
mov eax, reloc.WSOCK32.dll_WSASetLastError
mov word [rbp + 0x3bc], ax
mov eax, reloc.WSOCK32.dll_WSAGetLastError
mov word [rbp + 0x3be], ax
mov eax, WSACleanup
mov word [rbp + 0x3c0], ax
lea edi, [rax - 0x46]
mov dword [rbp + 0x3c2], 0x2c0074
xor edx, edx
mov r8d, 0x3ea
lea rcx, [rbp + 0x3c6]
call sub.MSVCR100.dll_memset
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp + 0x3c6]
call sub.MSVCR100.dll_memcpy
mov word [rbp + rsi + 0x3c6], di
lea r13, [rbp + rsi + 0x3c8]
xor r12d, r12d
mov word [r13], r12w
mov byte [rbp + 0x2a0], 0x5c
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x2a1]
call sub.MSVCR100.dll_memset
mov rdi, qword [rbp + 0xc30]
lea r14d, [rdi + 1]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r14d
lea rax, [rbp + 0x2a1]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [rbp + rdi + 0x2a1], gethostbyaddr
mov byte [rbp + rdi + 0x2a2], r12b
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.USER32.dll_CharLowerA]
lea rdx, [rbp + 0x2a0]
mov rcx, qword [0x14013f6a8]
call qword [sym.imp.MSVCR100.dll_strstr]
mov r12, rax
test rax, rax
je 0x14004aee7
mov eax, 0x2c
mov word [rbp + 0x3c4], ax
mov rcx, qword [0x14013f6a0]
sub rcx, qword [0x14013f6a8]
add r12, rcx
lea rdx, [0x140103614]
mov rcx, r12
call qword [sym.imp.MSVCR100.dll_strstr]
lea rbx, [rax + 1]
lea rdx, [0x14011f4dc]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_strstr]
sub r15, rbx
lea rdi, [r15 + rax]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r13
mov r9d, edi
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdi, [r13 + rdi*2]
mov r13, qword [rbp + 0xc30]
lea eax, [r13 + r13 + 2]
lea r8, [r12 + 1]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, r14d
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rbx, qword [rbp + 0xc28]
cmp word [rsi + rbx - 2], 0x5f
jne 0x14004aa11
add rdi, rsi
mov dword [rdi - 2], 0x2c
jmp 0x14004aa1f
mov eax, 0x2c
mov word [rsi + rdi], ax
lea rdi, [rsi + rdi + 2]
xor esi, esi
lea rdx, [0x14011f4e0]
mov rcx, r12
call qword [sym.imp.MSVCR100.dll_strstr]
lea r11, [rax + 1]
movzx ecx, byte [r11]
cmp cl, 0x5c
je 0x14004ae37
lea r10, str.INT64
lea r12, str.DOUBLE
lea r14, str.FLOAT
lea r15, str.CHAR
lea rax, str.SHORT
lea r8, [0x14011f538]
lea r9, str.USHORT
lea rsi, str.WSTR
lea r13, str.ASTR
lea rdx, [0x14011f4f8]
lea rbx, [0x14011f500]
nop
cmp cl, 0x55
je 0x14004ae0b
cmp cl, 0x75
je 0x14004ae0b
cmp cl, 0x7a
je 0x14004ad66
cmp cl, 0x5a
je 0x14004ad66
cmp cl, 0x73
je 0x14004ad36
cmp cl, 0x53
je 0x14004ad36
cmp cl, 0x74
je 0x14004ad16
cmp cl, 0x54
je 0x14004ad16
cmp cl, 0x61
je 0x14004ace9
cmp cl, 0x41
je 0x14004ace9
cmp cl, 0x77
je 0x14004acc5
cmp cl, 0x57
je 0x14004acc5
cmp cl, 0x78
je 0x14004ac99
cmp cl, 0x58
je 0x14004ac99
cmp cl, 0x69
je 0x14004ab18
cmp cl, 0x49
jne 0x14004ab53
cmp byte [r11 + 1], 0x36
jne 0x14004ab4c
mov rcx, r10
mov rdx, rdi
sub rdx, r10
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x14004ab30
add rdi, 0xa
inc r11
jmp 0x14004ad84
lea r8, [0x14011f538]
cmp cl, 0x69
je 0x14004ac49
cmp cl, 0x49
je 0x14004ac49
cmp cl, 0x68
je 0x14004ac19
cmp cl, 0x48
je 0x14004ac19
cmp cl, 0x63
je 0x14004abe9
cmp cl, 0x43
je 0x14004abe9
cmp cl, 0x66
je 0x14004abc5
cmp cl, 0x46
je 0x14004abc5
cmp cl, 0x64
je 0x14004ab99
cmp cl, 0x44
jne 0x14004ad84
mov rcx, r12
mov rdx, rdi
sub rdx, r12
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x14004abb0
jmp 0x14004ad80
mov rcx, r14
mov rdx, rdi
sub rdx, r14
nop
movzx eax, word [rcx]
mov word [rcx + rdx], ax
add rcx, 2
test ax, ax
jne 0x14004abd0
add rdi, 0xa
jmp 0x14004ad84
mov rcx, r15
mov rdx, rdi
sub rdx, r15
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x14004ac00
add rdi, 8
jmp 0x14004ad84
mov rcx, rax
mov rdx, rdi
sub rdx, rax
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x14004ac30
add rdi, 0xa
jmp 0x14004ad84
cmp byte [r11 + 1], 0x5c
jne 0x14004ac69
movzx eax, word [rdi - 2]
cmp ax, 0x75
je 0x14004ac69
cmp ax, 0x55
je 0x14004ac69
add rdi, 0xfffffffffffffffe
jmp 0x14004ad84
mov rcx, r8
mov rdx, rdi
sub rdx, r8
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x14004ac80
add rdi, 6
jmp 0x14004ad84
mov rcx, r9
mov rdx, rdi
sub rdx, r9
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x14004acb0
jmp 0x14004ad80
mov rcx, rsi
mov rdx, rdi
sub rdx, rsi
nop
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x14004acd0
add rdi, 8
jmp 0x14004ad84
mov rcx, r13
mov rdx, rdi
sub rdx, r13
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rcx + rdx], ax
add rcx, 2
test ax, ax
jne 0x14004ad00
add rdi, 8
jmp 0x14004ad84
mov rcx, rbx
mov rdx, rdi
sub rdx, rbx
nop
movzx eax, word [rcx]
mov word [rcx + rdx], ax
add rcx, 2
test ax, ax
jne 0x14004ad20
add rdi, 6
jmp 0x14004ad84
mov rcx, rdx
mov rdx, rdi
lea rax, [0x14011f4f8]
sub rdx, rax
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rcx + rdx], ax
add rcx, 2
test ax, ax
jne 0x14004ad50
add rdi, 6
jmp 0x14004ad84
mov rcx, r9
mov rdx, rdi
sub rdx, r9
nop
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x14004ad70
add rdi, 0xc
movzx eax, byte [r11 + 1]
cmp al, 0x2a
je 0x14004ad95
cmp al, 0x70
je 0x14004ad95
cmp al, 0x50
jne 0x14004adc4
lea rax, [0x14011ce24]
mov rcx, rax
mov rdx, rdi
sub rdx, rax
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x14004adb0
add rdi, 2
lea rax, [0x14011f580]
mov rcx, rax
mov rdx, rdi
sub rdx, rax
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x14004ade0
add rdi, 4
lea rax, str.SHORT
lea r8, [0x14011f538]
lea rdx, [0x14011f4f8]
jmp 0x14004ae17
mov ecx, 0x55
mov word [rdi], cx
add rdi, 2
inc r11
movzx ecx, byte [r11]
cmp cl, 0x5c
jne 0x14004aa90
mov rbx, qword [rbp + 0xc28]
mov r13, qword [rbp + 0xc30]
xor esi, esi
mov dword [rdi - 4], esi
mov r12, qword [rbp + 0xc20]
mov r10, qword [r12 + 0xbe0]
test r10, r10
je 0x14004ae84
cmp byte [rbp + 0xc48], 0
je 0x14004ae84
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x3b0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea r9, [rbp + 0x3b0]
lea rdx, str._s_n
mov rcx, r10
call fcn.140033a40
mov edx, 0x2c
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.MSVCR100.dll_wcschr]
lea rdx, [rbp + 0x3b0]
lea rcx, [rax + 2]
call fcn.1400e3510
xor r9d, r9d
mov r8, r13
mov rdx, rbx
mov rcx, r12
call fcn.14004af50
mov rdi, rax
lea rax, vtable.TextMem.0
mov qword [rbp], rax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14004a107
cmp byte [rbp + 0x4c], 0
je 0x14004aede
call qword [sym.imp.MSVCR100.dll_free]
mov qword [rbp + 0x40], rsi
jmp 0x14004a107
mov rcx, qword [rbp + 0x40]
lea rax, vtable.TextMem.0
test rcx, rcx
mov qword [rbp], rax
je 0x14004af0d
cmp byte [rbp + 0x4c], 0
je 0x14004af07
call qword [sym.imp.MSVCR100.dll_free]
xor eax, eax
mov qword [rbp + 0x40], rax
mov rcx, qword [rbp + 0x38]
lea rax, vtable.TextStream.0
test rcx, rcx
mov qword [rbp], rax
je 0x14004af38
mov r8d, 0x2000
xor edx, edx
call sub.MSVCR100.dll_memset
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.MSVCR100.dll_free]
xor eax, eax
lea rsp, [rbp + 0xbd8]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret