Function at 0x47a590
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59c04a
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0xc]
mov ebp, dword [esp + 0x28]
lea ebx, [esi + 0x14]
push ebp
mov ecx, ebx
call fcn.0056c0a6
mov ecx, dword [esp + 0x2c]
lea edi, [esi + 0x18]
push ecx
mov ecx, edi
call fcn.0056c0a6
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x47a6d8
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x47a788
push 0x5c
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.0056871c
push edi
lea ecx, [esp + 0x2c]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x2c], ebx
call fcn.0056c14c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.0056bf1d
mov edx, dword [edi]
cmp dword [edx - 8], ebx
je 0x47a6ab
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x47a6ab
test al, 0x10
jne 0x47a6ab
push 0x14
call fcn.0056bc5e
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x20], 3
je 0x47a655
mov ecx, eax
call fcn.005734df
jmp 0x47a657
xor eax, eax
mov ecx, dword [esp + 0x28]
push ebx
mov dword [esi + 0x20], eax
mov edx, dword [eax]
push ebx
push ecx
mov ecx, eax
mov byte [esp + 0x2c], 2
call dword [edx + 0x20]
test eax, eax
jne 0x47a69a
mov ecx, dword [esi + 0x20]
cmp ecx, ebx
je 0x47a682
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x20], ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0056bf1d
xor eax, eax
jmp 0x47a7d2
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x28]
jmp 0x47a7c8
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x47a6c6
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [esi + 0xc], eax
or ebx, 0xffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebx
call fcn.0056bf1d
jmp 0x47a6e9
mov eax, dword [edi]
mov eax, dword [eax - 8]
neg eax
sbb eax, eax
and eax, ecx
or ebx, 0xffffffff
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x47a788
mov ecx, dword [edi]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x47a726
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.0047a440
push eax
mov ecx, edi
mov dword [esp + 0x24], 4
call fcn.0056c056
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebx
call fcn.0056bf1d
push edi
lea ecx, [esp + 0x14]
call fcn.0056bc92
push 0x5f
push 0x2e
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 5
call fcn.005687d6
push 0x5f
push 0x5c
lea ecx, [esp + 0x18]
call fcn.005687d6
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
push 0x5f7a9c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x47a77b
mov edx, dword [esi + 0xc]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x47a78c
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], ebx
call fcn.0056bf1d
xor eax, eax
jmp 0x47a7d2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 4], eax
mov ebx, eax
mov eax, dword [esi + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
shr eax, 1
test ebx, ebx
lea ecx, [ebx + eax*2]
mov dword [esi + 8], ecx
je 0x47a7bc
cmp word [ebx], 0xfeff
jne 0x47a7bc
add ebx, 2
mov dword [esi + 4], ebx
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0056bf1d
mov eax, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8