Function at 0x1400480c0
Capabilities:
Extract resource via kernel32 functions
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1ffc0]
mov eax, 0x200c0
call fcn.1400d9fd0
sub rsp, rax
movzx r14d, r9b
mov rdi, r8
mov r15, rcx
test r8, r8
je 0x1400485a8
cmp word [r8], 0
je 0x1400485a8
mov esi, dword [0x140125fc8]
mov ebx, dword [0x140127350]
cmp esi, ebx
jl 0x1400481a1
cmp esi, 0xffff
jl 0x14004813c
lea r8, [0x1400fbbd0]
lea rdx, [0x140104818]
call fcn.140010a80
jmp 0x1400485aa
test ebx, ebx
je 0x140048151
add ebx, ebx
cmp ebx, 0xffff
jle 0x140048156
mov ebx, 0xffff
jmp 0x140048156
mov ebx, WSAAsyncSelect
mov rcx, qword [0x140125fc0]
movsxd rdx, ebx
shl rdx, 3
call fcn.1400c09ac
mov rcx, rax
test rax, rax
jne 0x14004818c
lea r8, [0x1400fbbd0]
mov rcx, r15
lea rdx, [0x1400ffa10]
call fcn.140010a80
jmp 0x1400485aa
mov esi, dword [0x140125fc8]
mov qword [0x140125fc0], rax
mov dword [0x140127350], ebx
jmp 0x1400481a8
mov rcx, qword [0x140125fc0]
movzx eax, word [rdi]
xor r12d, r12d
test esi, esi
jne 0x1400481ca
cmp ax, 0x2a
je 0x1400481d0
mov rax, qword [r15 + 0x760]
mov qword [rcx], rax
movsxd rbx, esi
jmp 0x140048264
cmp ax, 0x2a
jne 0x1400481f8
mov r8d, 0x7fff
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.1400cf354
lea rcx, [rsp + 0x40]
mov word [rbp + 0xff3e], r12w
call qword [sym.imp.USER32.dll_CharUpperW]
jmp 0x140048212
lea r9, [rbp + 0x20010]
mov edx, 0x8000
lea r8, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test r14b, r14b
jne 0x140048256
movsxd r14, esi
mov rbx, r12
test esi, esi
jle 0x140048256
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [0x140125fc0]
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx + rbx*8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140048558
inc rbx
cmp rbx, r14
jl 0x140048230
mov rax, qword [0x140125fc0]
movsxd rbx, esi
mov qword [rax + rbx*8], r12
mov r13d, dword [0x14011f198]
xor eax, eax
cmp word [rdi], 0x2a
mov r12, rdi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
mov byte [rsp + 0x3c], al
jne 0x140048383
cmp word [rdi + 2], ax
lea rdx, [rdi + 2]
je 0x140048383
xor ecx, ecx
lea r8d, [rax + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x140048383
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140048377
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140048377
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, 0x58
mov dword [rsp + 0x38], eax
lea r12, [rsp + 0x30]
mov r13d, 0xfde9
call fcn.1400ba174
mov qword [rbp + 0x20010], rax
mov rbx, rax
mov ecx, dword [0x140128010]
lea rax, vtable.TextStream.0
xor r14d, r14d
mov qword [rbx], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], r14d
mov dword [rbx + 0x14], 0xffffffff
mov qword [rbx + 0x30], r14
mov qword [rbx + 0x38], r14
cmp ecx, 0xffffffff
je 0x14004834a
lea rdx, [rbx + 0x18]
mov dword [rbx + 0x14], ecx
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x14004834a
mov byte [rbx + 0x1e], r14b
mov rcx, qword [rbp + 0x20008]
lea rax, vtable.TextMem.0
mov qword [rbx], rax
mov byte [rbx + 0x4c], 1
mov qword [rbx + 0x40], r14
mov qword [rcx], rbx
mov dword [rbx + 0x48], r14d
mov byte [rbx + 0x4c], r14b
mov qword [rbx + 0x50], r14
movsxd rbx, esi
jmp 0x1400483a6
mov rcx, qword [rbp + 0x20008]
movsxd rbx, esi
jmp 0x1400483a6
mov ecx, 0x48
call fcn.1400ba174
mov rcx, rax
mov qword [rbp + 0x20010], rax
call fcn.140007cd4
mov rcx, qword [rbp + 0x20008]
mov qword [rcx], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x14004854f
mov r9d, r13d
mov r8d, 0x30c
mov rdx, r12
call fcn.140099d10
test al, al
je 0x14004854f
mov rax, qword [0x140125fc0]
lea r12, [rbx*8]
cmp qword [r12 + rax], 0
jne 0x140048452
cmp word [rsp + 0x40], 0
je 0x140048442
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400483f5
lea r14, [rbx + rbx]
lea rcx, [r14 + 2]
call fcn.1400995e0
mov rdi, rax
test rax, rax
je 0x1400485c5
test rbx, rbx
je 0x14004842d
mov r8, r14
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400bbf50
mov rax, qword [0x140125fc0]
xor r13d, r13d
mov word [r14 + rdi], r13w
mov qword [r12 + rax], rdi
jmp 0x140048455
lea rdi, [0x1400fbbd0]
xor r13d, r13d
mov qword [r12 + rax], rdi
jmp 0x140048455
xor r13d, r13d
inc dword [0x140125fc8]
test esi, esi
jne 0x1400484c8
lea edx, [rsi + 2]
xor ecx, ecx
lea r8d, [rsi + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140048490
xor r9d, r9d
lea rdx, [0x1401048a8]
xor r8d, r8d
mov rcx, r15
call fcn.1400485d0
test eax, eax
je 0x1400485a8
mov rdx, qword [r15 + 0x7a8]
test rdx, rdx
je 0x1400484b2
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call fcn.1400485d0
test eax, eax
je 0x1400485a8
mov rcx, qword [r15 + 0x768]
call fcn.140063c40
mov eax, 3
jmp 0x1400485aa
mov esi, 0x5c
lea rcx, [rsp + 0x40]
mov edx, esi
call fcn.1400bbdec
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rdi, rax
jbe 0x140048548
mov word [rdi], r13w
lea rbx, [rsp + 0x40]
movzx ecx, word [rsp + 0x40]
test cx, cx
je 0x140048527
movzx eax, word [rsp + 0x42]
cmp ax, 0x3a
jne 0x140048527
cmp word [rsp + 0x44], 0
jne 0x140048527
mov word [rbp + 0x20010], cx
lea rbx, [rbp + 0x20010]
mov word [rbp + 0x20012], ax
mov dword [rbp + 0x20014], esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x140048545
cmp byte [0x140127dbc], 0
je 0x140048545
mov rcx, rbx
call fcn.140063cb0
mov word [rdi], si
mov eax, 3
jmp 0x1400485aa
cmp byte [rbp + 0x20020], 0
je 0x14004855f
mov eax, 1
jmp 0x1400485aa
lea rax, [0x140104840]
mov qword [rsp + 0x20], rdi
test esi, esi
lea r9, [0x140104858]
lea r8, [0x140104868]
mov edx, 0x8040
cmovne r9, rax
lea rcx, [rbp + 0xff40]
call fcn.14009cd90
lea r8, [0x1400fbbd0]
mov rcx, r15
lea rdx, [rbp + 0xff40]
call fcn.140010a80
jmp 0x1400485aa
xor eax, eax
mov rbx, qword [rsp + 0x20100]
add rsp, 0x200c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140011190
int3