Function at 0x40e380
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 0x4b7327
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x450
mov eax, dword [0x4e843c]
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 - 0x39c], edi
mov esi, dword [ebx + 8]
mov dword [ebp - 0x3a4], esi
call fcn.004329e0
lea eax, [ebp - 0x8c]
push eax
call fcn.00431590
add esp, 4
push 0xe
push 0x4d69f4
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
call fcn.00404820
lea eax, [ebp - 0x8c]
push eax
call fcn.00431460
add esp, 4
test al, al
jne 0x40e421
lea eax, [ebp - 0x8c]
push eax
call fcn.00431480
add esp, 4
push 0xe
push str.downloader.log
lea ecx, [ebp - 0x8c]
call fcn.00404820
sub esp, 0x18
lea eax, [ebp - 0x8c]
mov ecx, esp
push eax
call fcn.0040f2a0
call fcn.00432a10
add esp, 0x14
mov ecx, 0x4eea10
call fcn.0041f130
lea ecx, [ebp - 0x74]
call fcn.004111d0
push 1
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0042e990
add esp, 0xc
mov dword [edi + 8], eax
test eax, eax
jne 0x40e4b5
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.00434790
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x20]
call fcn.004349c0
push 0
push 0
push 0x2b73
lea ecx, [ebp - 0x20]
call fcn.00434b00
mov byte [ebp - 0x391], 0
jmp 0x40e925
lea eax, [ebp - 0x44]
push eax
call fcn.00431590
add esp, 4
push 0x14
push 0x4d6980
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00404820
lea eax, [ebp - 0x44]
push eax
call fcn.00431460
add esp, 4
test al, al
jne 0x40e4f0
lea eax, [ebp - 0x44]
push eax
call fcn.00431480
add esp, 4
push 0x4d6a30
push 0x82
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40e5aa
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3a0], eax
test eax, eax
je 0x40e5aa
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x398], eax
test eax, eax
je 0x40e5aa
cmp dword [ebp - 0x30], 8
lea esi, [ebp - 0x44]
push dword [ebp - 0x3a0]
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], 0x43b410
mov dword [ebp - 0x24], 0x43b460
call fcn.004194a0
push 0
lea ecx, [ebp - 0x390]
call fcn.0043b4c0
lea edx, [ebp - 0x390]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0043b250
lea ecx, [ebp - 0x390]
mov byte [ebp - 4], 2
call fcn.0043c020
mov esi, dword [ebp - 0x3a4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x4eec90
lea ecx, [ebp - 0x3d4]
call fcn.00404620
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.0040e0d0
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 0x40e65d
mov ecx, dword [ebp - 0x3d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e653
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e9d2
push edx
push ecx
call fcn.00491f22
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c4], 0
push 0x4eec90
lea ecx, [ebp - 0x3bc]
mov dword [ebp - 0x3c0], 7
mov word [ebp - 0x3d4], ax
call fcn.00404620
cmp dword [ebp - 0x3ac], 0
mov edx, dword [ebp - 0x3a8]
setne al
mov byte [ebp - 0x391], al
cmp edx, 8
jb 0x40e6e0
mov ecx, dword [ebp - 0x3bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e6d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e9dc
push edx
push ecx
call fcn.00491f22
mov al, byte [ebp - 0x391]
add esp, 8
test al, al
je 0x40e6fa
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]
push esi
call fcn.0044b480
add esp, 4
lea ecx, [ebp - 0x3bc]
push 0x4eedb8
call fcn.00404620
push 0x4eedb8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00404620
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.0044b510
mov byte [ebp - 4], 7
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40e78f
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e785
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e9d7
push edx
push ecx
call fcn.00491f22
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 0x40e7e7
mov ecx, dword [ebp - 0x3bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e7dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e9d7
push edx
push ecx
call fcn.00491f22
add esp, 8
lea eax, [ebp - 0x118]
push eax
call fcn.004469d0
add esp, 4
push 0x4d69c8
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.0044d7d0
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0040f580
push eax
call fcn.0044b910
add esp, 4
lea ecx, [ebp - 0x460]
call fcn.0044d680
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 6
call fcn.0044d680
push str.language.tsv
push 0x81
call fcn.00447030
mov esi, dword [ebp - 0x39c]
add esp, 8
mov ecx, esi
call fcn.0040e9f0
push esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [esi + 0xc]
call fcn.004348b0
sub esp, 0x28
mov ecx, 0x4eee38
mov eax, esp
push str.run_downloader
mov dword [eax + 0x24], 0
call fcn.0042ddc0
mov edx, dword [ebp - 0x48]
mov byte [ebp - 0x391], 1
cmp edx, 8
jb 0x40e8c3
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e8b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e9dc
push edx
push ecx
call fcn.00491f22
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 0x40e911
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e907
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e9dc
push edx
push ecx
call fcn.00491f22
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 0x40e95f
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e955
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e9dc
push edx
push ecx
call fcn.00491f22
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 0x40e9ac
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e9a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e9dc
push edx
push ecx
call fcn.00491f22
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.00491a8a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0049b75b
call fcn.0049b75b
call fcn.0049b75b
int3