Function at 0x4059d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c308
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
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 + 0x50]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x405bc8
push edi
lea ecx, [esp + 0x14]
call fcn.004069c0
mov dword [esp + 0x10], 0x41e274
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], esi
lea esi, [eax - 1]
test esi, esi
jl 0x405a64
mov edi, dword [esp + 0x14]
mov bl, byte [0x422084]
test bl, bl
je 0x405a5b
mov dl, byte [edi + esi]
mov al, bl
mov ecx, 0x422084
cmp al, dl
je 0x405a60
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x405a4f
dec esi
js 0x405a64
jmp 0x405a41
mov eax, esi
jmp 0x405a67
or eax, 0xffffffff
lea esi, [eax + 1]
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x14]
call fcn.004023e0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push 0x42207c
mov byte [edx + esi], 0
push ecx
mov dword [esp + 0x24], esi
call fcn.00402c00
add esp, 0xc
push eax
push str.PATH
mov byte [esp + 0x50], 1
call fcn.0040e207
add esp, 4
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00402c00
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 2
call dword [eax + 4]
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.004024b0
mov edi, 0x41e260
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 3
call fcn.0040c2f0
mov ebp, 0x41e270
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 4
call fcn.0040c2f0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push 0x42206c
push edx
mov byte [esp + 0x54], 0
call fcn.00402c00
add esp, 0xc
mov esi, eax
mov ecx, dword [esi + 8]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov byte [esp + 0x4c], 5
call dword [eax + 4]
mov esi, dword [esi + 4]
push esi
call fcn.0041b020
add esp, 4
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 6
call fcn.0040c2f0
mov edx, dword [esp + 0x50]
mov dword [esp + 0x20], ebp
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [esp + 0x10], edi
test esi, esi
jne 0x405b9e
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 7
call fcn.0040c2f0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 8
call fcn.004021b0
test eax, eax
je 0x405bbc
push eax
call fcn.0040e110
add esp, 4
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x10], ebp
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
test ebp, ebp
mov ebx, eax
je 0x405c28
push 0xa
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x405c28
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 0x405c28
mov dword [0x425c34], esi
call ebp
push esi
push edi
call ebx
add esp, 8
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret