Function at 0x40a4e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4373d8
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 0
call esi
or eax, 0x8001
push eax
call esi
mov edi, dword [esp + 0x5c]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [edi + 4]
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x40a68e
push edi
lea ecx, [esp + 0x10]
call fcn.00405000
mov dword [esp + 0xc], 0x43a2c4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], esi
lea esi, [eax - 1]
test esi, esi
jl 0x40a564
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx + esi]
push edx
push 0x444464
call fcn.004074b0
add esp, 8
test al, al
jne 0x40a567
dec esi
jns 0x40a548
or esi, 0xffffffff
inc esi
lea ecx, [esp + 0xc]
lea eax, [esi + 1]
push eax
call fcn.00404f50
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x40]
push 0x44445c
mov byte [ecx + esi], 0
push eax
mov dword [esp + 0x20], esi
call fcn.00405b80
add esp, 0xc
push eax
push str.PATH
mov byte [esp + 0x5c], 1
call fcn.0041b1e0
add esp, 4
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00405b80
add esp, 0xc
mov esi, eax
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 2
call dword [edx + 4]
push esi
lea ecx, [esp + 0x10]
call fcn.00404fa0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 1
call fcn.00401cc0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0
call fcn.00401cc0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x3c]
push eax
push 0x44444c
push ecx
call fcn.00405b80
add esp, 0xc
mov esi, eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x58], 3
call dword [edx + 4]
mov esi, dword [esi + 4]
push esi
call fcn.00434e30
add esp, 4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0
call fcn.00401cc0
mov eax, dword [edi + 4]
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x40a665
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 0xffffffff
call fcn.00401cc0
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
mov dword [esp + 0xc], 0x43a2a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 4
call fcn.00401dd0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0xc], 0x43a294
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SplashInit
push esi
call edi
push str.SplashLoadMemory
push esi
mov ebp, eax
call edi
push str.SplashLoadFile
push esi
mov dword [esp + 0x64], eax
call edi
test ebp, ebp
mov esi, eax
je 0x40a7d3
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [0x448e94]
call fcn.0040a870
mov eax, dword [esp + 0x24]
mov dword [esp + 0x54], 5
test eax, eax
je 0x40a74a
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov eax, dword [esp + 0x20]
push eax
call fcn.00412410
add esp, 4
test eax, eax
je 0x40a74a
mov dword [0x448ea0], 1
call ebp
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov eax, dword [esp + 0x20]
push eax
call esi
add esp, 4
mov dword [esp + 0x1c], 0x43a2a0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 6
call fcn.00401dd0
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
push 0xa
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40a77b
mov dword [esp + 0x1c], 0x43a2a0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 7
call fcn.00401f00
test eax, eax
je 0x40a7d3
jmp 0x40a7ca
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test esi, esi
mov edi, eax
jbe 0x40a7ad
mov dword [0x448ea0], esi
call ebp
push esi
push edi
call dword [esp + 0x64]
add esp, 8
mov dword [esp + 0x1c], 0x43a2a0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 8
call fcn.00401f00
test eax, eax
je 0x40a7d3
push eax
call fcn.0041a070
add esp, 4
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x4c
ret