Function at 0x409590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x432518
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 0x40973e
push edi
lea ecx, [esp + 0x10]
call fcn.0040a790
mov dword [esp + 0xc], 0x4352bc
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], esi
lea esi, [eax - 1]
test esi, esi
jl 0x409614
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx + esi]
push edx
push 0x43e42c
call fcn.00406350
add esp, 8
test al, al
jne 0x409617
dec esi
jns 0x4095f8
or esi, 0xffffffff
inc esi
lea ecx, [esp + 0xc]
lea eax, [esi + 1]
push eax
call fcn.00403b90
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x40]
push 0x43e424
mov byte [ecx + esi], 0
push eax
mov dword [esp + 0x20], esi
call fcn.00404b50
add esp, 0xc
push eax
push str.PATH
mov byte [esp + 0x5c], 1
call fcn.00416b78
add esp, 4
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00404b50
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.00403be0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 1
call fcn.00403b00
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0
call fcn.00403b00
lea eax, [esp + 0xc]
lea ecx, [esp + 0x3c]
push eax
push 0x43e414
push ecx
call fcn.00404b50
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.004300e0
add esp, 4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0
call fcn.00403b00
mov eax, dword [edi + 4]
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x409715
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 0xffffffff
call fcn.00403b00
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
mov dword [esp + 0xc], 0x4352ac
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 4
call fcn.00404110
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0xc], 0x4352a8
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 0x409883
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [0x442c5c]
call fcn.00409920
mov eax, dword [esp + 0x24]
mov dword [esp + 0x54], 5
test eax, eax
je 0x4097fa
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov eax, dword [esp + 0x20]
push eax
call fcn.0040e720
add esp, 4
test eax, eax
je 0x4097fa
mov dword [0x442c68], 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], 0x4352ac
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 6
call fcn.00404110
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 0x40982b
mov dword [esp + 0x1c], 0x4352ac
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 7
call fcn.00403ca0
test eax, eax
je 0x409883
jmp 0x40987a
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 0x40985d
mov dword [0x442c68], esi
call ebp
push esi
push edi
call dword [esp + 0x64]
add esp, 8
mov dword [esp + 0x1c], 0x4352ac
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 8
call fcn.00403ca0
test eax, eax
je 0x409883
push eax
call fcn.00415ab8
add esp, 4
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x4c
ret