Function at 0x4102e0
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 0x51b84a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x438
mov eax, dword [0x55e904]
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.0042eec0
lea eax, [ebp - 0x74]
push eax
call fcn.00433ff0
add esp, 4
push 0xe
push str.xzdownloader_
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0
call fcn.00403b00
lea eax, [ebp - 0x74]
push eax
call fcn.00433ec0
add esp, 4
test al, al
jne 0x41037e
lea eax, [ebp - 0x74]
push eax
call fcn.00433ee0
add esp, 4
push 0xe
push str.downloader.log
lea ecx, [ebp - 0x74]
call fcn.00403b00
sub esp, 0x18
lea eax, [ebp - 0x74]
mov ecx, esp
push eax
call fcn.00411490
call fcn.0042eef0
push str._r_n_r_n_start_
push 0x19
push str.XZDownloaderImpl::init
call fcn.0042ee30
add esp, 0x24
push dword [ebp - 0x398]
push str.cmd:_s
push 0x1a
push str.XZDownloaderImpl::init
call fcn.0042ee30
push 3
call fcn.004455e0
add esp, 0x10
mov ecx, 0x564fa8
call fcn.0041f410
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.004039a0
push 1
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00431940
mov byte [ebp - 4], 0
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [edi + 8], eax
cmp edx, 8
jb 0x41045e
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410454
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410ae6
push edx
push ecx
call fcn.004ee8e8
add esp, 8
cmp dword [edi + 8], 0
jne 0x410540
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.004354a0
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.004039a0
lea eax, [ebp - 0x394]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x20]
call fcn.004356d0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x380]
cmp edx, 8
jb 0x41050f
mov ecx, dword [ebp - 0x394]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410505
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410aeb
push edx
push ecx
call fcn.004ee8e8
add esp, 8
push 0
push 0
push 0x2b73
lea ecx, [ebp - 0x20]
call fcn.00435810
push str.download_has_exist_
push 0x26
push str.XZDownloaderImpl::init
call fcn.0042ee30
add esp, 0xc
mov byte [ebp - 0x379], 0
jmp 0x410a8a
lea eax, [ebp - 0x44]
push eax
call fcn.00433ff0
add esp, 4
push 0x14
push 0x54b2d8
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00403b00
lea eax, [ebp - 0x44]
push eax
call fcn.00433ec0
add esp, 4
test al, al
jne 0x41057b
lea eax, [ebp - 0x44]
push eax
call fcn.00433ee0
add esp, 4
push 0x54b4a0
push 0x83
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41062f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x398], eax
test eax, eax
je 0x41062f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x39c], eax
test eax, eax
je 0x41062f
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], 0x43c110
mov dword [ebp - 0x24], 0x43c160
call fcn.004197a0
push 0
lea ecx, [ebp - 0x378]
call fcn.0043c1c0
lea edx, [ebp - 0x378]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0043bf50
lea ecx, [ebp - 0x378]
mov byte [ebp - 4], 3
call fcn.0043cd20
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x565228
lea ecx, [ebp - 0x3bc]
call fcn.00403900
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.00410030
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 0x4106e2
mov ecx, dword [ebp - 0x3bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4106d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410af0
push edx
push ecx
call fcn.004ee8e8
add esp, 8
xor eax, eax
mov dword [ebp - 0x3ac], 0
push 0x565228
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x3a8], 7
mov word [ebp - 0x3bc], ax
call fcn.00403900
cmp dword [ebp - 0x384], 0
mov edx, dword [ebp - 0x380]
setne al
mov byte [ebp - 0x379], al
cmp edx, 8
jb 0x410765
mov ecx, dword [ebp - 0x394]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410755
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410aff
push edx
push ecx
call fcn.004ee8e8
mov al, byte [ebp - 0x379]
add esp, 8
test al, al
je 0x41079d
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.0042ee30
add esp, 0x14
push str.duilib_init
push 0x3f
push str.XZDownloaderImpl::init
call fcn.0042ee30
add esp, 0xc
push dword [ebp - 0x3a4]
call fcn.004a7e80
add esp, 4
lea ecx, [ebp - 0x394]
push 0x565350
call fcn.00403900
push 0x565350
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00403900
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.004a7f10
mov byte [ebp - 4], 8
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x41084b
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410841
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410af5
push edx
push ecx
call fcn.004ee8e8
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 0x4108a3
mov ecx, dword [ebp - 0x394]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410899
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410af5
push edx
push ecx
call fcn.004ee8e8
add esp, 8
lea eax, [ebp - 0x100]
push eax
call fcn.004a33e0
add esp, 4
push 0x54b360
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 0xa
push ecx
mov ecx, eax
call fcn.004aa1d0
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.004117c0
push eax
call fcn.004a8310
add esp, 4
lea ecx, [ebp - 0x448]
call fcn.004aa080
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 7
call fcn.004aa080
push str.language.tsv
push 0x82
call fcn.004a3a40
push str.create_main
push 0x46
push str.XZDownloaderImpl::init
call fcn.0042ee30
mov esi, dword [ebp - 0x3a0]
add esp, 0x14
mov ecx, esi
call fcn.00410b10
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.004039a0
push esi
lea eax, [ebp - 0x394]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [esi + 0xc]
call fcn.004355c0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x380]
cmp edx, 8
jb 0x4109b8
mov ecx, dword [ebp - 0x394]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4109ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410afa
push edx
push ecx
call fcn.004ee8e8
add esp, 8
sub esp, 0x28
mov ecx, 0x5653d0
mov eax, esp
push str.run_downloader
mov dword [eax + 0x24], 0
call fcn.0042d690
push str.entrance_end
push 0x4d
push str.XZDownloaderImpl::init
call fcn.0042ee30
mov edx, dword [ebp - 0x48]
add esp, 0xc
mov byte [ebp - 0x379], 1
cmp edx, 8
jb 0x410a28
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410a1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410aff
push edx
push ecx
call fcn.004ee8e8
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 0x410a76
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410a6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410aff
push edx
push ecx
call fcn.004ee8e8
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 0x410ac0
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410ab6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410aff
push edx
push ecx
call fcn.004ee8e8
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.004ee450
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004f8e2c
call fcn.004f8e2c
call fcn.004f8e2c
call fcn.004f8e2c
call fcn.004f8e2c
call fcn.004f8e2c
int3