Function at 0x40fed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b29a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x438
mov eax, dword [0x55f904]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3a0], edi
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x3a4], esi
mov dword [ebp - 0x398], eax
call fcn.0042e9f0
lea eax, [ebp - 0x74]
push eax
call fcn.00433b20
add esp, 4
push 0xe
push str.xzdownloader_
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0
call fcn.004035c0
lea eax, [ebp - 0x74]
push eax
call fcn.004339f0
add esp, 4
test al, al
jne 0x40ff6e
lea eax, [ebp - 0x74]
push eax
call fcn.00433a10
add esp, 4
push 0xe
push str.downloader.log
lea ecx, [ebp - 0x74]
call fcn.004035c0
sub esp, 0x18
lea eax, [ebp - 0x74]
mov ecx, esp
push eax
call fcn.00411080
call fcn.0042ea20
push str._r_n_r_n_start_
push 0x19
push str.XZDownloaderImpl::init
call fcn.0042e960
add esp, 0x24
push dword [ebp - 0x398]
push str.cmd:_s
push 0x1a
push str.XZDownloaderImpl::init
call fcn.0042e960
push 3
call fcn.00445110
add esp, 0x10
mov ecx, 0x565fa8
call fcn.0041ee70
push 0x26
xor eax, eax
mov dword [ebp - 0x2c], 0
push str.2266E930_7040_4A6B_B7C8_E44663785cdd
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00403460
push 1
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00431470
mov byte [ebp - 4], 0
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [edi + 8], eax
cmp edx, 8
jb 0x41004e
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410044
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4106d6
push edx
push ecx
call fcn.004ee3ca
add esp, 8
cmp dword [edi + 8], 0
jne 0x410130
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.00434fd0
push 0x26
xor eax, eax
mov dword [ebp - 0x394], 0
push str.2266E930_7040_4A6B_B7C8_E44663785cdd
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x384], 0
mov dword [ebp - 0x380], 7
mov word [ebp - 0x394], ax
call fcn.00403460
lea eax, [ebp - 0x394]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x20]
call fcn.00435200
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x380]
cmp edx, 8
jb 0x4100ff
mov ecx, dword [ebp - 0x394]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4100f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4106db
push edx
push ecx
call fcn.004ee3ca
add esp, 8
push 0
push 0
push 0x2b73
lea ecx, [ebp - 0x20]
call fcn.00435340
push str.download_has_exist_
push 0x26
push str.XZDownloaderImpl::init
call fcn.0042e960
add esp, 0xc
mov byte [ebp - 0x379], 0
jmp 0x41067a
lea eax, [ebp - 0x44]
push eax
call fcn.00433b20
add esp, 4
push 0x14
push 0x54b628
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.004035c0
lea eax, [ebp - 0x44]
push eax
call fcn.004339f0
add esp, 4
test al, al
jne 0x41016b
lea eax, [ebp - 0x44]
push eax
call fcn.00433a10
add esp, 4
push 0x54b7f0
push 0x83
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41021f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x398], eax
test eax, eax
je 0x41021f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x39c], eax
test eax, eax
je 0x41021f
cmp dword [ebp - 0x30], 8
lea esi, [ebp - 0x44]
push dword [ebp - 0x398]
cmovae esi, dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LockResource]
sub esp, 0x18
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x39c]
mov ecx, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
push esi
mov dword [ebp - 0x28], 0x43bc40
mov dword [ebp - 0x24], 0x43bc90
call fcn.00419200
push 0
lea ecx, [ebp - 0x378]
call fcn.0043bcf0
lea edx, [ebp - 0x378]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0043ba80
lea ecx, [ebp - 0x378]
mov byte [ebp - 4], 3
call fcn.0043c850
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x566228
lea ecx, [ebp - 0x3bc]
call fcn.004033c0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
push ecx
lea ecx, [ebp - 0x3bc]
call fcn.0040fc20
mov dword [ebp - 0x5c], 0
xor ecx, ecx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x4c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x3a8]
cmp edx, 8
jb 0x4102d2
mov ecx, dword [ebp - 0x3bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4102c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4106e0
push edx
push ecx
call fcn.004ee3ca
add esp, 8
xor eax, eax
mov dword [ebp - 0x3ac], 0
push 0x566228
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x3a8], 7
mov word [ebp - 0x3bc], ax
call fcn.004033c0
cmp dword [ebp - 0x384], 0
mov edx, dword [ebp - 0x380]
setne al
mov byte [ebp - 0x379], al
cmp edx, 8
jb 0x410355
mov ecx, dword [ebp - 0x394]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410345
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4106ef
push edx
push ecx
call fcn.004ee3ca
mov al, byte [ebp - 0x379]
add esp, 8
test al, al
je 0x41038d
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push 0
cmovae eax, dword [ebp - 0x5c]
push 0x10
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.load_Noto_Sans_fonts_ret:_d__error:_d
push 0x3c
push str.XZDownloaderImpl::init
call fcn.0042e960
add esp, 0x14
push str.duilib_init
push 0x3f
push str.XZDownloaderImpl::init
call fcn.0042e960
add esp, 0xc
push dword [ebp - 0x3a4]
call fcn.004a7960
add esp, 4
lea ecx, [ebp - 0x394]
push 0x566350
call fcn.004033c0
push 0x566350
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.004033c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x394]
cmp dword [ebp - 0x380], 8
lea eax, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x394]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.004a79f0
mov byte [ebp - 4], 8
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x41043b
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410431
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4106e5
push edx
push ecx
call fcn.004ee3ca
add esp, 8
xor eax, eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x380]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x410493
mov ecx, dword [ebp - 0x394]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410489
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4106e5
push edx
push ecx
call fcn.004ee3ca
add esp, 8
lea eax, [ebp - 0x100]
push eax
call fcn.004a2eb0
add esp, 4
push 0x54b6b0
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 0xa
push ecx
mov ecx, eax
call fcn.004a9cb0
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.004113b0
push eax
call fcn.004a7df0
add esp, 4
lea ecx, [ebp - 0x448]
call fcn.004a9b60
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 7
call fcn.004a9b60
push str.language.tsv
push 0x82
call fcn.004a3510
push str.create_main
push 0x46
push str.XZDownloaderImpl::init
call fcn.0042e960
mov esi, dword [ebp - 0x3a0]
add esp, 0x14
mov ecx, esi
call fcn.00410700
push 0x26
xor eax, eax
mov dword [ebp - 0x394], 0
push str.2266E930_7040_4A6B_B7C8_E44663785cdd
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x384], 0
mov dword [ebp - 0x380], 7
mov word [ebp - 0x394], ax
call fcn.00403460
push esi
lea eax, [ebp - 0x394]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [esi + 0xc]
call fcn.004350f0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x380]
cmp edx, 8
jb 0x4105a8
mov ecx, dword [ebp - 0x394]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41059e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4106ea
push edx
push ecx
call fcn.004ee3ca
add esp, 8
sub esp, 0x28
mov ecx, 0x5663d0
mov eax, esp
push str.run_downloader
mov dword [eax + 0x24], 0
call fcn.0042d1c0
push str.entrance_end
push 0x4d
push str.XZDownloaderImpl::init
call fcn.0042e960
mov edx, dword [ebp - 0x48]
add esp, 0xc
mov byte [ebp - 0x379], 1
cmp edx, 8
jb 0x410618
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41060e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4106ef
push edx
push ecx
call fcn.004ee3ca
add esp, 8
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp edx, 8
jb 0x410666
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41065c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4106ef
push edx
push ecx
call fcn.004ee3ca
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x4106b0
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4106a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4106ef
push edx
push ecx
call fcn.004ee3ca
add esp, 8
mov al, byte [ebp - 0x379]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004edf30
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004f890c
call fcn.004f890c
call fcn.004f890c
call fcn.004f890c
call fcn.004f890c
call fcn.004f890c
int3