Function at 0x40e400
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 0x51e867
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x450
mov eax, dword [0x562904]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x39c], ecx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x3a0], esi
call fcn.00432090
lea eax, [ebp - 0x8c]
push eax
call fcn.004371c0
add esp, 4
push 0xe
push 0x54ec68
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
call fcn.00404840
lea eax, [ebp - 0x8c]
push eax
call fcn.00437090
add esp, 4
test al, al
jne 0x40e4a2
lea eax, [ebp - 0x8c]
push eax
call fcn.004370b0
add esp, 4
push 0xe
push str.downloader.log
lea ecx, [ebp - 0x8c]
call fcn.00404840
sub esp, 0x18
lea eax, [ebp - 0x8c]
mov ecx, esp
push eax
call fcn.0040f480
call fcn.004320c0
push str._r_n_r_n_start_
push 0x19
push str.XZDownloaderImpl::init
call fcn.00432000
add esp, 0x24
push edi
push str.cmd:_s
push 0x1a
push str.XZDownloaderImpl::init
call fcn.00432000
push 3
call fcn.00448710
add esp, 0x10
mov ecx, 0x568fb0
call fcn.00420bd0
lea ecx, [ebp - 0x74]
call fcn.004115b0
push 1
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00434b10
mov ecx, dword [ebp - 0x39c]
add esp, 0xc
mov dword [ecx + 8], eax
test eax, eax
jne 0x40e57d
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.004385c0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x20]
call fcn.004387f0
push 0
push 0
push 0x2b73
lea ecx, [ebp - 0x20]
call fcn.00438930
push str.has_exist_
push 0x27
push str.XZDownloaderImpl::init
call fcn.00432000
add esp, 0xc
mov byte [ebp - 0x391], 0
jmp 0x40ea43
lea eax, [ebp - 0x44]
push eax
call fcn.004371c0
add esp, 4
push 0x14
push 0x54ebf4
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00404840
lea eax, [ebp - 0x44]
push eax
call fcn.00437090
add esp, 4
test al, al
jne 0x40e5b8
lea eax, [ebp - 0x44]
push eax
call fcn.004370b0
add esp, 4
push 0x54ed84
push 0x82
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40e66c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3a4], eax
test eax, eax
je 0x40e66c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x398], eax
test eax, eax
je 0x40e66c
cmp dword [ebp - 0x30], 8
lea esi, [ebp - 0x44]
push dword [ebp - 0x3a4]
cmovae esi, dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LockResource]
sub esp, 0x18
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x398]
mov ecx, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
push esi
mov dword [ebp - 0x28], 0x43f240
mov dword [ebp - 0x24], 0x43f290
call fcn.0041af60
push 0
lea ecx, [ebp - 0x390]
call fcn.0043f2f0
lea edx, [ebp - 0x390]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0043f080
lea ecx, [ebp - 0x390]
mov byte [ebp - 4], 2
call fcn.0043fe50
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x569230
lea ecx, [ebp - 0x3d4]
call fcn.00404640
mov byte [ebp - 4], 4
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 - 0x3d4]
call fcn.0040e150
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], 6
mov edx, dword [ebp - 0x3c0]
cmp edx, 8
jb 0x40e71f
mov ecx, dword [ebp - 0x3d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e715
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eaf0
push edx
push ecx
call fcn.004f19ca
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c4], 0
push 0x569230
lea ecx, [ebp - 0x3bc]
mov dword [ebp - 0x3c0], 7
mov word [ebp - 0x3d4], ax
call fcn.00404640
cmp dword [ebp - 0x3ac], 0
mov edx, dword [ebp - 0x3a8]
setne al
mov byte [ebp - 0x391], al
cmp edx, 8
jb 0x40e7a2
mov ecx, dword [ebp - 0x3bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e792
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eafa
push edx
push ecx
call fcn.004f19ca
mov al, byte [ebp - 0x391]
add esp, 8
test al, al
je 0x40e7da
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_fonts_ret:_d__error:_d
push 0x3d
push str.XZDownloaderImpl::init
call fcn.00432000
add esp, 0x14
push str.duilib_init
push 0x40
push str.XZDownloaderImpl::init
call fcn.00432000
add esp, 0xc
push dword [ebp - 0x3a0]
call fcn.004aaf60
add esp, 4
lea ecx, [ebp - 0x3bc]
push 0x569358
call fcn.00404640
push 0x569358
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00404640
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3bc]
cmp dword [ebp - 0x3a8], 8
lea eax, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x3bc]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.004aaff0
mov byte [ebp - 4], 7
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40e888
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e87e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eaf5
push edx
push ecx
call fcn.004f19ca
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x3a8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x40e8e0
mov ecx, dword [ebp - 0x3bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e8d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eaf5
push edx
push ecx
call fcn.004f19ca
add esp, 8
lea eax, [ebp - 0x118]
push eax
call fcn.004a64c0
add esp, 4
push 0x54ec3c
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.004ad2b0
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0040f7b0
push eax
call fcn.004ab3f0
add esp, 4
lea ecx, [ebp - 0x460]
call fcn.004ad160
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 6
call fcn.004ad160
push str.language.tsv
push 0x81
call fcn.004a6b20
push str.create_main
push 0x47
push str.XZDownloaderImpl::init
call fcn.00432000
mov esi, dword [ebp - 0x39c]
add esp, 0x14
mov ecx, esi
call fcn.0040eb00
push esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [esi + 0xc]
call fcn.004386e0
sub esp, 0x28
mov ecx, 0x5693d8
mov eax, esp
push str.run_downloader
mov dword [eax + 0x24], 0
call fcn.004300b0
push str.entrance_end
push 0x4e
push str.XZDownloaderImpl::init
call fcn.00432000
mov edx, dword [ebp - 0x48]
add esp, 0xc
mov byte [ebp - 0x391], 1
cmp edx, 8
jb 0x40e9e1
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e9d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eafa
push edx
push ecx
call fcn.004f19ca
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 0x40ea2f
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ea25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eafa
push edx
push ecx
call fcn.004f19ca
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 0x40ea7d
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ea73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eafa
push edx
push ecx
call fcn.004f19ca
add esp, 8
mov edx, dword [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
cmp edx, 8
jb 0x40eaca
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eac0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eafa
push edx
push ecx
call fcn.004f19ca
add esp, 8
mov al, byte [ebp - 0x391]
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.004f1532
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004fbf0c
call fcn.004fbf0c
call fcn.004fbf0c
int3