Function at 0x414780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478018
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x48d744]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
call fcn.004169e0
mov dword [ebp - 4], 0
mov byte [ebp - 0x2d], 0
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x14], 0
je 0x414803
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x14], 0
je 0x414803
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x50]
mov al, byte [edx]
mov byte [ebp - 0x55], al
add dword [ebp - 0x50], 1
cmp byte [ebp - 0x55], 0
jne 0x4147e6
mov ecx, dword [ebp - 0x50]
sub ecx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], ecx
jne 0x41481e
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0x1c], 0
je 0x41481c
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x18], ecx
jmp 0x41486a
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0x1c], 0
je 0x414832
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x18], ecx
jmp 0x41486a
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x414866
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00416a10
mov eax, dword [ebp - 0x38]
jmp 0x4149d7
mov byte [ebp - 0x2d], 1
lea ecx, [ebp - 0x2c]
call fcn.00416950
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0xc]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00416630
lea ecx, [ebp - 0x2c]
call fcn.00402850
mov dword [ebp - 0x14], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4148f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x18], 0
je 0x4148d6
movzx edx, byte [ebp - 0x2d]
test edx, edx
je 0x4148d6
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00416a10
mov eax, dword [ebp - 0x3c]
jmp 0x4149d7
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x414928
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 8], 0
ja 0x41495b
cmp dword [ebp - 0x18], 0
je 0x414940
movzx edx, byte [ebp - 0x2d]
test edx, edx
je 0x414940
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00416a10
mov eax, dword [ebp - 0x40]
jmp 0x4149d7
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 8]
push eax
call fcn.004494ce
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x44]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 4]
push ecx
call fcn.0044fb00
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x4149b5
movzx edx, byte [ebp - 0x2d]
test edx, edx
je 0x4149b5
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x48], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00416a10
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret