Function at 0x1400480f0
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 - 0x1ffd0]
mov eax, 0x200d0
call fcn.1400d9ac0
sub rsp, rax
movzx edi, r9b
mov r14, r8
mov r15, rcx
test r8, r8
je 0x1400485f3
cmp word [r8], 0
je 0x1400485f3
mov esi, dword [0x140125fc8]
mov ebx, dword [0x140127350]
cmp esi, ebx
jl 0x1400481d1
cmp esi, 0xffff
jl 0x14004816c
lea r8, [0x1400fbbd0]
lea rdx, [0x140104818]
call fcn.140010a90
jmp 0x1400485f5
test ebx, ebx
je 0x140048181
add ebx, ebx
cmp ebx, 0xffff
jle 0x140048186
mov ebx, 0xffff
jmp 0x140048186
mov ebx, WSAAsyncSelect
mov rcx, qword [0x140125fc0]
movsxd rdx, ebx
shl rdx, 3
call fcn.1400c049c
mov rcx, rax
test rax, rax
jne 0x1400481bc
lea r8, [0x1400fbbd0]
mov rcx, r15
lea rdx, [0x1400ffa10]
call fcn.140010a90
jmp 0x1400485f5
mov esi, dword [0x140125fc8]
mov qword [0x140125fc0], rax
mov dword [0x140127350], ebx
jmp 0x1400481d8
mov rcx, qword [0x140125fc0]
movzx eax, word [r14]
xor r12d, r12d
lea rbx, [r12 - 1]
test esi, esi
jne 0x140048200
cmp ax, 0x2a
je 0x140048206
mov rax, qword [r15 + 0x760]
mov qword [rcx], rax
movsxd rdi, esi
jmp 0x1400482a5
cmp ax, 0x2a
jne 0x14004822e
mov r8d, 0x7fff
lea rcx, [rsp + 0x50]
mov rdx, r14
call fcn.1400cee44
lea rcx, [rsp + 0x50]
mov word [rbp + 0xff4e], r12w
call qword [sym.imp.USER32.dll_CharUpperW]
jmp 0x140048248
lea r9, [rbp + 0x20020]
mov edx, 0x8000
lea r8, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test dil, dil
jne 0x140048297
mov rdi, r12
movsxd r12, esi
test esi, esi
jle 0x140048294
nop word [rax + rax]
mov rcx, qword [0x140125fc0]
lea r8, [rsp + 0x50]
mov r9d, ebx
mov dword [rsp + 0x20], 1
mov edx, ebx
mov rcx, qword [rcx + rdi*8]
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
je 0x1400485a3
inc rdi
cmp rdi, r12
jl 0x140048260
xor r12d, r12d
mov rax, qword [0x140125fc0]
movsxd rdi, esi
mov qword [rax + rdi*8], r12
cmp word [r14], 0x2a
mov r13, r14
mov eax, dword [0x14011f198]
mov dword [rbp + 0x20020], eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov byte [rsp + 0x3c], 0
jne 0x1400483ce
cmp word [r14 + 2], 0
lea rdx, [r14 + 2]
je 0x1400483ce
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r12, rax
test rax, rax
je 0x1400483ce
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400483c2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400483c2
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, 0x58
mov dword [rbp + 0x20020], 0xfde9
mov dword [rsp + 0x38], eax
lea r13, [rsp + 0x30]
call fcn.1400b9c64
mov ecx, dword [0x140128010]
mov rdi, rax
xor r12d, r12d
mov qword [rsp + 0x40], rax
lea rax, vtable.TextStream.0
mov qword [rdi], rax
mov qword [rdi + 8], r12
mov dword [rdi + 0x10], r12d
mov dword [rdi + 0x14], 0xffffffff
mov qword [rdi + 0x30], r12
mov qword [rdi + 0x38], r12
cmp ecx, 0xffffffff
je 0x140048395
lea rdx, [rdi + 0x18]
mov dword [rdi + 0x14], ecx
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x140048395
mov byte [rdi + 0x1e], r12b
mov rcx, qword [rbp + 0x20018]
lea rax, vtable.TextMem.0
mov qword [rdi], rax
mov byte [rdi + 0x4c], 1
mov qword [rdi + 0x40], r12
mov qword [rcx], rdi
mov dword [rdi + 0x48], r12d
mov byte [rdi + 0x4c], r12b
mov qword [rdi + 0x50], r12
movsxd rdi, esi
jmp 0x1400483ef
mov rcx, qword [rbp + 0x20018]
movsxd rdi, esi
jmp 0x1400483ef
mov ecx, 0x48
call fcn.1400b9c64
mov rcx, rax
mov qword [rsp + 0x40], rax
call fcn.140007cd4
mov rcx, qword [rbp + 0x20018]
mov qword [rcx], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x14004859a
mov r9d, dword [rbp + 0x20020]
mov r8d, 0x30c
mov rdx, r13
call fcn.140099800
test al, al
je 0x14004859a
mov rax, qword [0x140125fc0]
lea r12, [rdi*8]
cmp qword [r12 + rax], 0
jne 0x14004849d
cmp word [rsp + 0x50], 0
je 0x14004848d
lea rax, [rsp + 0x50]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140048440
lea r14, [rbx + rbx]
lea rcx, [r14 + 2]
call fcn.1400990d0
mov rdi, rax
test rax, rax
je 0x140048610
test rbx, rbx
je 0x140048478
mov r8, r14
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1400bba40
mov rax, qword [0x140125fc0]
xor r13d, r13d
mov word [r14 + rdi], r13w
mov qword [r12 + rax], rdi
jmp 0x1400484a0
lea rdi, [0x1400fbbd0]
xor r13d, r13d
mov qword [r12 + rax], rdi
jmp 0x1400484a0
xor r13d, r13d
inc dword [0x140125fc8]
test esi, esi
jne 0x140048513
lea edx, [rsi + 2]
xor ecx, ecx
lea r8d, [rsi + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400484db
xor r9d, r9d
lea rdx, [0x1401048a8]
xor r8d, r8d
mov rcx, r15
call fcn.140048620
test eax, eax
je 0x1400485f3
mov rdx, qword [r15 + 0x7a8]
test rdx, rdx
je 0x1400484fd
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call fcn.140048620
test eax, eax
je 0x1400485f3
mov rcx, qword [r15 + 0x768]
call fcn.1400635c0
mov eax, 3
jmp 0x1400485f5
mov esi, 0x5c
lea rcx, [rsp + 0x50]
mov edx, esi
call fcn.1400bb8dc
mov rdi, rax
lea rax, [rsp + 0x50]
cmp rdi, rax
jbe 0x140048593
mov word [rdi], r13w
lea rbx, [rsp + 0x50]
movzx ecx, word [rsp + 0x50]
test cx, cx
je 0x140048572
movzx eax, word [rsp + 0x52]
cmp ax, 0x3a
jne 0x140048572
cmp word [rsp + 0x54], 0
jne 0x140048572
mov word [rbp + 0x20020], cx
lea rbx, [rbp + 0x20020]
mov word [rbp + 0x20022], ax
mov dword [rbp + 0x20024], esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x140048590
cmp byte [0x140127dbc], 0
je 0x140048590
mov rcx, rbx
call fcn.140063630
mov word [rdi], si
mov eax, 3
jmp 0x1400485f5
cmp byte [rbp + 0x20030], 0
je 0x1400485aa
mov eax, 1
jmp 0x1400485f5
lea rax, [0x140104840]
mov qword [rsp + 0x20], r14
test esi, esi
lea r9, [0x140104858]
lea r8, [0x140104868]
mov edx, 0x8040
cmovne r9, rax
lea rcx, [rbp + 0xff50]
call fcn.14009c880
lea r8, [0x1400fbbd0]
mov rcx, r15
lea rdx, [rbp + 0xff50]
call fcn.140010a90
jmp 0x1400485f5
xor eax, eax
mov rbx, qword [rsp + 0x20110]
add rsp, 0x200d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400111a0
int3