Function at 0x407780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ec44
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x56e910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov eax, dword [0x579ad4]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test eax, eax
jne 0x407804
push 0x628
call fcn.004e46e3
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4077f6
push 0x628
push 0
push esi
call fcn.004ef570
add esp, 0xc
mov ecx, esi
call fcn.00409890
jmp 0x4077f8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x579ad4], eax
mov ecx, eax
call fcn.0040bfc0
test al, al
je 0x40782a
push 0x54e1c0
push 0x11
push str.DownloadImpl::entrance
call fcn.0043de40
add esp, 0xc
xor al, al
jmp 0x407dd0
lea eax, [ebp - 0x90]
push eax
call fcn.00442050
add esp, 4
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x407848
mov eax, dword [eax]
push eax
push str.path__s
push 0x15
push str.DownloadImpl::entrance
call fcn.0043de40
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x7c], 8
jb 0x407878
push dword [ebp - 0x90]
call fcn.00488e40
add esp, 4
push 3
call fcn.004a7fb0
mov eax, dword [0x579ad4]
add esp, 4
test eax, eax
jne 0x4078cf
push 0x628
call fcn.004e46e3
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x4078c1
push 0x628
push 0
push esi
call fcn.004ef570
add esp, 0xc
mov ecx, esi
call fcn.00409890
jmp 0x4078c3
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x579ad4], eax
push ebx
mov ecx, eax
call fcn.0040aaa0
mov eax, dword [0x579ad4]
test eax, eax
jne 0x407924
push 0x628
call fcn.004e46e3
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 3
test esi, esi
je 0x407916
push 0x628
push 0
push esi
call fcn.004ef570
add esp, 0xc
mov ecx, esi
call fcn.00409890
jmp 0x407918
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x579ad4], eax
mov dword [eax + 0x590], edi
lea eax, [ebp - 0x28]
push eax
call fcn.00442160
add esp, 4
push 0x17
push str.lddownloader_en_fonts_
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 4
call fcn.00404a10
lea eax, [ebp - 0x28]
push eax
call fcn.00441f10
add esp, 4
test al, al
jne 0x407968
lea eax, [ebp - 0x28]
push eax
call fcn.00441f30
add esp, 4
push 0x54e200
push 0x82
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4079bd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4079bd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x4079bd
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [ebp - 0x5c]
mov ecx, eax
call fcn.004516c0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x579ad4]
test eax, eax
jne 0x407a0b
push 0x628
call fcn.004e46e3
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x407a00
push 0x628
push 0
push esi
call fcn.004ef570
add esp, 0xc
mov ecx, esi
call fcn.00409890
jmp 0x407a02
xor eax, eax
mov byte [ebp - 4], 4
mov dword [0x579ad4], eax
lea ecx, [ebp - 0x78]
push ecx
mov ecx, eax
call fcn.00414500
push eax
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.004056d0
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x64], 8
jb 0x407a3e
push dword [ebp - 0x78]
call fcn.00488e40
add esp, 4
xor eax, eax
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
mov eax, dword [0x579ad4]
mov dword [ebp - 0x68], 0
test eax, eax
jne 0x407a99
push 0x628
call fcn.004e46e3
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 9
test esi, esi
je 0x407a8e
push 0x628
push 0
push esi
call fcn.004ef570
add esp, 0xc
mov ecx, esi
call fcn.00409890
jmp 0x407a90
xor eax, eax
mov byte [ebp - 4], 8
mov dword [0x579ad4], eax
lea ecx, [ebp - 0x90]
push ecx
mov ecx, eax
call fcn.00414500
cmp dword [eax + 0x10], 0
setne bl
cmp dword [ebp - 0x7c], 8
jb 0x407ac2
push dword [ebp - 0x90]
call fcn.00488e40
add esp, 4
xor eax, eax
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
test bl, bl
je 0x407b11
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
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 0x2f
push str.DownloadImpl::entrance
call fcn.0043de40
add esp, 0x14
mov eax, dword [0x579ad4]
test eax, eax
jne 0x407b58
push 0x628
call fcn.004e46e3
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x407b4d
push 0x628
push 0
push esi
call fcn.004ef570
add esp, 0xc
mov ecx, esi
call fcn.00409890
jmp 0x407b4f
xor eax, eax
mov byte [ebp - 4], 8
mov dword [0x579ad4], eax
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.00413cd0
push edi
mov byte [ebp - 4], 0xb
call fcn.004623c0
add esp, 4
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push str.en_US
push eax
call fcn.00462450
lea eax, [ebp - 0x1a0]
push eax
call fcn.0045d5a0
add esp, 0xc
push str.skin
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xc
push ecx
mov ecx, eax
call fcn.004647e0
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00415130
push eax
call fcn.00462860
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x118]
call fcn.004646b0
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0xb
call fcn.004646b0
push str.multi_language.tsv
push 0x81
call fcn.0045dc50
mov ebx, dword [ebp - 0x60]
add esp, 8
mov ecx, ebx
call fcn.00407ef0
push 0x26
xor eax, eax
mov dword [ebp - 0x64], 7
push str.2266E930_7040_4A6B_B7C8_E44663785cdd
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x68], 0
mov word [ebp - 0x78], ax
call fcn.00405200
push ebx
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebx + 4]
call fcn.00443970
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x64], 8
jb 0x407c43
push dword [ebp - 0x78]
call fcn.00488e40
add esp, 4
push 0xc
xor eax, eax
mov dword [ebp - 0x64], 7
push str.download_run
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x68], 0
mov word [ebp - 0x78], ax
call fcn.00405200
mov byte [ebp - 4], 0xf
mov eax, dword [0x579ad4]
test eax, eax
jne 0x407cb1
push 0x628
call fcn.004e46e3
mov esi, eax
add esp, 4
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 0x10
test esi, esi
je 0x407ca6
push 0x628
push 0
push esi
call fcn.004ef570
add esp, 0xc
mov ecx, esi
call fcn.00409890
jmp 0x407ca8
xor eax, eax
mov byte [ebp - 4], 0xf
mov dword [0x579ad4], eax
lea ecx, [ebp - 0x90]
push ecx
mov ecx, eax
call fcn.0040c750
mov edi, eax
mov byte [ebp - 4], 0x11
mov eax, dword [0x579ad4]
test eax, eax
jne 0x407d0c
push 0x628
call fcn.004e46e3
mov esi, eax
add esp, 4
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 0x12
test esi, esi
je 0x407d01
push 0x628
push 0
push esi
call fcn.004ef570
add esp, 0xc
mov ecx, esi
call fcn.00409890
jmp 0x407d03
xor eax, eax
mov byte [ebp - 4], 0x11
mov dword [0x579ad4], eax
push edi
lea ecx, [ebp - 0x78]
push ecx
mov ecx, eax
call fcn.00413a50
cmp dword [ebp - 0x7c], 8
jb 0x407d2c
push dword [ebp - 0x90]
call fcn.00488e40
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x64], 8
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
jb 0x407d58
push dword [ebp - 0x78]
call fcn.00488e40
add esp, 4
sub esp, 0x18
mov ecx, 0x579b10
mov eax, esp
push str.run_downloader
mov dword [eax + 0x10], 0
call fcn.00427a60
cmp dword [ebp - 0x44], 8
jb 0x407d84
push dword [ebp - 0x58]
call fcn.00488e40
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x407da9
push dword [ebp - 0x40]
call fcn.00488e40
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x407dce
push dword [ebp - 0x28]
call fcn.00488e40
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e46d4
mov esp, ebp
pop ebp
ret 8